Simple Query for Week number

2002-12-19 Thread Rajesh . Rao
Hey Folks, Looking for the simplest of queries to find the week number, given a date. For example, 19th December 2002 falls in the 3rd week, whereas 19th November, 2002, falls in the 4th week. Thanks Raj -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: INET: [EMAIL

RE: Simple Query for Week number

2002-12-19 Thread Rajesh . Rao
: Sent by: Subject: RE: Simple Query for Week number root@fatcity. com

RE: Simple Query for Week number

2002-12-19 Thread Fink, Dan
Raj, How do you define week number? If a month starts in the middle of the week, is that week #1 or must it be the first full week? If the format mask 'W' is adequate, use 1 select sysdate, to_char(sysdate, 'W'), 2 '01-DEC-02', to_char(to_date('01-DEC-02'), 'W'), 3

RE: Simple Query for Week number

2002-12-19 Thread Paul . Parker
select to_char(sysdate, 'W') from dual; Paul -Original Message- Sent: Thursday, December 19, 2002 10:54 AM To: Multiple recipients of list ORACLE-L Hey Folks, Looking for the simplest of queries to find the week number, given a date. For example, 19th December 2002 falls in the 3rd

Re: Simple Query for Week number

2002-12-19 Thread Yechiel Adar
: Sent by: Subject: RE: Simple Query for Week number root@fatcity. com December 19, 2002 12:05 PM Please respond to ORACLE-L

RE: Simple Query for Week number

2002-12-19 Thread Fink, Dan
by: Subject: RE: Simple Query for Week number root@fatcity. com December 19, 2002 12:05 PM Please respond to ORACLE-L Raj

Re: Simple Query for Week number

2002-12-19 Thread Rajesh . Rao
: Simple Query for Week number root@fatcity. com December 19, 2002 12:05 PM Please respond to ORACLE-L Raj, How do you define week