Re: Last Fri. of the Month ?

2001-02-22 Thread Pat Hildebrand
Given Any Date , How to Deduce the Date for the Last Fri. of the SAME Month ? how about next_day(last_day(date) - 7, 'Friday') where date is the given date? for example to find the last Friday of the month select next_day(last_day(sysdate) - 7, 'Friday') from dual

Re: Last Fri. of the Month ?

2001-02-22 Thread Scott Canaan
Didn't we just do this one? select next_day(last_day(sysdate) - 7, 'fri') from dual; VIVEK_SHARMA wrote: Given Any Date , How to Deduce the Date for the Last Fri. of the SAME Month ? -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: VIVEK_SHARMA INET: [EMAIL

Re: Last Fri. of the Month ?

2001-02-22 Thread Saurabh Sharma
here it is.. SELECT NEXT_DAY(SYSDATE+(LAST_DAY(SYSDATE)-SYSDATE-7),'FRIDAY') FROM DUAL; saurabh - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Thursday, February 22, 2001 3:10 AM Given Any Date , How to Deduce the Date for the Last Fri

RE: Last Fri. of the Month ? - THANKS so much

2001-02-22 Thread VIVEK_SHARMA
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: VIVEK_SHARMA INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists

RE: Last Fri. of the Month ? - THANKS so much

2001-02-22 Thread VIVEK_SHARMA
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: VIVEK_SHARMA INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California-- Public Internet access / Mailing Lists

Last Fri. of the Month ?

2001-02-21 Thread VIVEK_SHARMA
Given Any Date , How to Deduce the Date for the Last Fri. of the SAME Month ? -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: VIVEK_SHARMA INET: [EMAIL PROTECTED] Fat City Network Services-- (858) 538-5051 FAX: (858) 538-5051 San Diego, California