Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Last Fridayof the month

Re: Last Fridayof the month

From: Viktor <stant_98_at_yahoo.com>
Date: Tue, 23 Jan 2001 10:18:50 -0800 (PST)
Message-Id: <10750.127307@fatcity.com>


Hello,

Would this help:

select decode( to_char(last_day(sysdate ),'d'), 6, last_day( sysdate ) ,
next_day(last_day( sysdate ) ,'fri')-7 ) from dual
/

We can do this with:

decode( to_char(last_day( sysdate ),'d'),6, last_day( sysdate ),4 next_day(last_day( sysdate ) ,'fri')-7 )


Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. Received on Tue Jan 23 2001 - 12:18:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US