hi!

then i think this is what you need:

select to_date('01-01-'||round(to_char(sysdate, 'YYYY'), -1),
   'DD-MM-YYYY') from dual;

reg.
daniel

Imran Ashraf wrote:
> 
> Im running this query:
>   select round(add_months(sysdate,500),'YYYY')
>   from dual;
> This retuns:
> 01-JAN-2044.
> 
> I want it to return:
> 
> 01-JAN-2040.
> 
> Thanks
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Daniel Wisser
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to