GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Mar-2005, 21:05
shinyhui shinyhui is offline
Awaiting Email Confirmation
 
Join Date: Feb 2005
Posts: 38
shinyhui is on a distinguished road

Combine GROUP BY and ORDER BY statement together


Date x y
-------------------------
1/8/05 3 23
2/2/05 232 223
5/8/05 34 234
4/12/05 56 435
6/1/05 345 235
5/2/05 56 878

my table is like this, now i would like to group the date by work week so all the fidure will add up according to work week and i want my date order by ascending.

what i aspect my result is

work week x y
--------------------------------
1 345 235
5 90 1112
31 37 257
49 56 435

Do anybody have any idea on how to write this statement?
 
 

Recent GIDBlogVista ?Widgets? on Windows XP by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two virtual hosts, cgi script behaves differently on each blimbo Apache Web Server Forum 0 04-Aug-2004 09:35
change statement jilshi Web Design Forum 0 26-Apr-2004 22:40

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:14.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.