Yussi Ariefiyono
calculating age in sql
problem:
display age with sql command
solution:
sql command:
SELECT DATEDIFF(mm, dateOfBirth, GETDATE()) / 12 AS age
FROM someTable
it wil display age ^^V
| Print article | This entry was posted by yussi ariefiyono on August 3, 2009 at 5:38 pm, and is filed under sql. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |