I want to calculate the current Age from Date of Birth in my Oracle function.
What I am using is (Today-Dob)/30/12, but this is not accurate as some mon
(Today-Dob)/30/12
For business logic I usually find a decimal number (in years) is useful:
select months_between(TRUNC(sysdate), to_date('15-Dec-2000','DD-MON-YYYY') )/12 as age from dual; AGE ---------- 9.48924731