DATABASE NAME:
HR_ASSOCIATES
TABLE NAME :
HireDate
COMMAND:
(DATENAME(YEAR, HireDate)
Hello,
im trying to build a report out of the HR DATABASE to allow our Users to Pull a Report of Associates Anniversary's and have it output the number of years the associate has been there.
any help would be greatly appreciated. the report is already working for the user to select the month and it will only show the people with anniversarys that month but I would love it to show the number of years as well........for example....if Table data Shows 2002, and Todays Year is 2008 how can i get SQL to Show me 6 YEARS?
Thanks,
PhatAdam
Information Systems
Start Free Trial