Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

oracle difference between two dates in years

select floor(months_between(date '2012-10-10', date '2011-10-10') /12) from dual;

select floor(months_between(date '2012-10-9' , date '2011-10-10') /12) from dual;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #oracle #difference #dates #years
ADD COMMENT
Topic
Name
7+8 =