Hi All,
Thanks for your time, I have table in which there is DATE column and it is used to store the date of birth of a person
When I try to calculate the age in terms of years - for one record I have an issue which I cannot determine the problem - in the entire table this is the only record where I see the year as 1063 instead of 1963
any help or suggestions.
EXTRACT(YEAR FROM SYSDATE) - EXTRACT(YEAR FROM A.DT_OF_BIRTH) AS age
EXTRACT(YEAR FROM TO_DATE(A.DT_OF_BIRTH,'DD-MON-YY')) - when I use this it is giving me 2063
EXTRACT(YEAR FROM TO_DATE(A.DT_OF_BIRTH,'DD-MON-YYYY')) AS TEST1 - when I use this it is giving me 63

Thanks a lot for your time