If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > years of service

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-11, 11:33
capriman capriman is offline
Registered User
 
Join Date: Dec 2011
Posts: 6
years of service

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
Reply With Quote
  #2 (permalink)  
Old 12-12-11, 11:00
beilstwh beilstwh is offline
Lead Application Develope
 
Join Date: Jun 2004
Location: Liverpool, NY USA
Posts: 2,222
Try looking up examples of determining age. The logic is the same. We will give you pointers on Homework, but won't just do it. Sorry.
__________________
Bill
You do not need a parachute to skydive. You only need a parachute to skydive twice.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On