If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > group by help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-04-04, 02:05
rexselin rexselin is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 109
group by help

Hi ,
am having a query in which i need to do a group by "hour".It displays all the data grouped in a 24 hr format and the query goes on like "group by hour(mydatabasefield)". For instance if my result set is like

00 12
01 12
02 11
03 11
so on till 24

I need it grouped like

01 24
03 22

and so .



How do i do this in the query ?
Thanks in advance.

Last edited by rexselin; 08-05-04 at 05:19.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On