>Hi,
>
>I hope that someone can help me with a SQL statement.
>
>I dont know if this is the right place to ask the question, if not 
>please redirect me.
>
>I have a table in my MySQL database named "data" with the following fields
>
>date        : UNIX Timestamp
>Datasize : Int
>
>now i would like to do something like this
>
>select sum(datasize) from data
>group by ( this is the problem. I would like to be able to group on 
>hours, 10 min, 30 min and so on, one at a time)

SQL can only do one grouping per statement. You'll have to write 
separate SELECT statements for each grouping.

Bob Hall

Know thyself? Absurd direction!
Bubbles bear no introspection.     -Khushhal Khan Khatak

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to