I want a table with one field.
I want values to be the current year, the year before, and the year before that...etc....
I want this table to be updated on the fly.
I have the following, but these are in separate fields which I don't want happen.
select to_char(sysdate, 'YYYY'), to_char(sysdate - 365.25, 'YYYY'),to_char(sysdate - (365.25)*2, 'YYYY'), to_char(sysdate - (365.25)*3, 'YYYY'),to_char(sysdate - (365.25)*4, 'YYYY') from dual
I want values to be the current year, the year before, and the year before that...etc....
I want this table to be updated on the fly.
I have the following, but these are in separate fields which I don't want happen.
select to_char(sysdate, 'YYYY'), to_char(sysdate - 365.25, 'YYYY'),to_char(sysdate - (365.25)*2, 'YYYY'), to_char(sysdate - (365.25)*3, 'YYYY'),to_char(sysdate - (365.25)*4, 'YYYY') from dual