Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Age syntax

Author  Topic 

Trininole
Yak Posting Veteran

83 Posts

Posted - 2009-07-14 : 15:47:06
what is the syntax to calculate age in SQL Server?

Roger DeFour

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-07-14 : 15:55:14
Here you will find what you need:
http://weblogs.sqlteam.com/peterl/archive/2009/02/13/Improved-anniversary-calculation-better-datediff.aspx


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-07-14 : 16:13:11
If you want decimal years calculated
http://weblogs.sqlteam.com/peterl/archive/2009/04/01/One-way-to-calculate-decimal-year.aspx



N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page
   

- Advertisement -