Stephane There are days when I just feel lucky if I can understand your code, let alone come up with something smarter.
Dennis Williams DBA, 40%OCP, 100% DBA Lifetouch, Inc. [EMAIL PROTECTED] -----Original Message----- Sent: Friday, March 28, 2003 8:39 AM To: Multiple recipients of list ORACLE-L SQL> l 1 select x.d 2 from (select to_date(rownum, 'DDD') d, 3 to_number(to_char(to_date(rownum, 'DDD'), 'IW')) week 4 from all_objects 5 where rownum < 366) x 6* where x.week = &week_num You may have a problem with leap years, but it's basically the idea. Anything smarter, somebody ? > >Given a week between (1 - 52) for a particular year >can we get all the dates within that week. Is there >a function to do this >in SQL??? > >Thanks a lot. > >Regards >Sesi >-- Regards, Stephane Faroult Oriole -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephane Faroult 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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: DENNIS WILLIAMS 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).