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
:
Sent by: Subject: RE: Simple Query for Week number
root@fatcity.
com
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
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
:
Sent by: Subject: RE: Simple Query for
Week number
root@fatcity.
com
December 19,
2002 12:05 PM
Please
respond to
ORACLE-L
by: Subject: RE: Simple Query for
Week number
root@fatcity.
com
December 19,
2002 12:05 PM
Please
respond to
ORACLE-L
Raj
: 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