View Single Post
  #2 (permalink)  
Old 01-03-2008, 12:37 PM
yercaudarun yercaudarun is offline
Junior Member
 
Join Date: Jan 2008
Posts: 1
yercaudarun is on a distinguished road
Default ANY answer. Re: Select records that are expiring in a month

u can use add _months function if u know that its going to expire within a month..or if u want a specific date then do..
i am new try it may help u

select to_date('07-jul-99','dd-mon-rr') - hire_date as "no of days"
from employees where
to_date('07-jul-99','dd-mon-rr') - hire_date between 0 and 30

so these records wil be the ones that are going to expire
Reply With Quote