Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Simpler ways of calculating years between

29240Apr 11 2006 — edited Apr 11 2008
Hi again,

I would appreciate numerous versions of calculating years between in years of age

i think there should be simpler ones than this below:

SQL> select floor(months_between(hire_date,dob)/12) age from employee;

AGE
----------
38
32
30
46
39
25
32
46
39
33

10 rows selected.

many thanks

cube60
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2008
Added on Apr 11 2006
6 comments
22,095 views