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
 Other Forums
 Other Topics
 Calculating Age

Author  Topic 

Anonymous
Starting Member

0 Posts

Posted - 2000-08-09 : 00:00:00
I need to find the age of a person in years.
(in this example im just comparing two dates, but the idea is the same)

eg.

select datediff(year, '10-Aug-1985','15-Aug-2000')

This returns with '15' which is clearly wrong - It is rounding off the numbers.

Thanks
   

- Advertisement -