Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Function Help

Status
Not open for further replies.

pradchal1

Programmer
Nov 10, 2004
31
FR
What is the SQL function to get the age from a birthdate?

I know in MS ACCESS, it is
DateDiff("yyyy",BIRTHDATE,Now())

Thanks
 
Almost the same:

Code:
 DateDiff(yy,BIRTHDATE,getdate())



"A long life is when each day is full and every hour wide!"
(A Jewish Mentor)
M. [hourglass]

 
Calculating age is not at all straight forward. Take a look at this thread thread183-1010795 solutions are presented there.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top