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
You can try below method,
SELECT EXTRACT(YEAR FROM APP_SUBMITTED_DATE)-EXTRACT(YEAR FROM BIRTH_DATE) FROM SOME_TABLE;
It will compare years and give age accordingly. You can also use SYSDATE instead of APP_SUBMITTED_DATE.
SYSDATE
APP_SUBMITTED_DATE
Regards.