Preview Content - log in or Join KEBI Academy

sql age function

If you are after accurate way to calculate Age using T-SQL then the below post might help you.

Below are questions that I try to answer in this post:

  • How to get age from birth date using getdate() (current date) in Tsql
  • How to calculate age from date of birth (DOB) and specified date
  • How to create T-SQL aging UDF function to calculate age from DOB and today's date or specified date
  • Calculate person's age (Accurate age calculation)

    T-SQL Age - years difference

    The above example show difference in years so it is not accurate. If you need accuracy than please use the code below.

To access members only content log in
or join KEBI Academy and unlock your potential

Just $8/month
Silver Membership
View more
7 Days Free Trial
Subscriptions only
View more
Fast Learning
made easy & affordable
View more
207 fellow members joined KEBI Academy
+48 members in last 30 days
Did you find this page useful?

+6  |  -0
(6 Votes)