Possible Duplicate:
How to calculate age in T-SQL with years, months, and days
It seems like something simple, but it doesn't seem to work for me. I want to calculate the age of someone base on two dates in SQL.
I did DATEDIFF(year,Birthdate,ReferenceDate) and it doesn't always give me the right age.
For example
DATEDIFF(year,'1981-07-05',2011-07-01')
gives 30, while it should still be 29. Is there a way to do this ?
Thanks,