Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Week - Date function!
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.
dwilliams_at_lifetouch.com
-----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
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: sfaroult_at_oriolecorp.com 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: ListGuru_at_fatcity.com (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: DWILLIAMS_at_LIFETOUCH.COM 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: ListGuru_at_fatcity.com (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).Received on Fri Mar 28 2003 - 09:03:42 CST
![]() |
![]() |