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
SELECT TRUNC((SYSDATE - TO_DATE(DOB, 'YYYY-MM-DD'))/ 365.25) AS AGE_TODAY FROM DUAL;
This is easy and straight to the point.