Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GROUP BY week query required

Status
Not open for further replies.

sourabhjha

Programmer
Jan 13, 2002
121
IN
I have table with a date field and a number field in it Can someone tell me the query by which i can fetch records is grouped by the week part of the date.
 
Try group by to_char(sysdate,'YYYYIW') so that you can return grouped weekcode. MCSE/MCDBA
Testing OCP DBA 8i
******************
 
suppose i want to compare my date field to lie between two given weeks (say 5th and 15th)then how do i do that.Remember that to_date("05 2001,'iw yyyy') won't work as to_date doesn't work for week formatting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top