|
Re: Date Function that return Next or Previous Year [message #301058 is a reply to message #301055] |
Tue, 19 February 2008 01:42   |
 |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
Not really, but you might combine some of them:SELECT to_char(add_months(sysdate, -12), 'yyyy') last_year,
to_char(add_months(sysdate, 12), 'yyyy') next_year
from dual There are other ways to do that (for example, using the TRUNC function etc., but I guess this might be a good start.
|
|
|
|