How to get the difference in years from sysdate
Hi all,
I want to display years from 2005 to sysdate. I have tried this, but it is giving same SYSDATEs year 6 times.
SELECT EXTRACT(YEAR FROM SYSDATE + LEVEL -1) FROM DUAL CONNECT BY LEVEL < TRUNC(MONTHS_BETWEEN (SYSDATE,TO_DATE('2005','YYYY'))/12)
Thanks in advance,
Pal