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
 General SQL Server Forums
 Database Design and Application Architecture
 calculate years of service

Author  Topic 

capriman
Starting Member

4 Posts

Posted - 2011-12-10 : 07:48:23
I have an employee table with hire_date and need to calculate years of service and include to_yminterval. not sure how to do this just in a select statement. then need to create a case statement ex. if years of service is > 10 '10 years of service'

thanks,
capriman

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-12-10 : 08:49:15
Looks like you are using Oracle. SQLTeam.com is on MS SQL Server. For Oracle related question try dbforums.com or ask.sqlservercentral.com


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -