FALCONSEYE
Programmer
I am still learning Oracle. I am trying to determine if a given date is less than 2 years from sysdate. Is this a valid statement or is there a better way of doing this?
select (to_date(sysdate) - to_date('01/01/2008','dd/mm/yyyy'))/365 yearsBetween from dual;
thanks
select (to_date(sysdate) - to_date('01/01/2008','dd/mm/yyyy'))/365 yearsBetween from dual;
thanks