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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query and dates

Status
Not open for further replies.

johk02

Programmer
Aug 20, 2003
169
AU
Hi,

I have table in a MySQL 4.X database where I store the number of clicks a link has had per day. I am trying to generate report similar to:
2006
Jan
Mon
Tue
Wed
Thur
Fri
Sat
Sun
Mon
Tue
Wed
Thur
Fri
Sat
Sun
etc
Feb
March
etc
etc
2007
Jan
Feb
March
etc
etc

I believe I have to use SELECT MONTH () and YEAR() but I can't get my head around it. The date is stored as 2006-07-04.
Any suggestions would be appreciated.

Cheers
Jonas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top