MySQL Forums
Forum List  »  Newbie

Re: Help!!!
Posted by: Claude Martin
Date: April 05, 2005 03:17AM

> GROUP BY date.id, pump1.TVater1
why do you group by TVater1?!
group by some id!

> i resive the replay
>
> id TVater1 PAir1
> 5 20 30

i bet you do! thats what the GROUP BY is supposed to do. it groups...

> bat there`s only 1 record, not 5
>
> and i wont to get 5 of them
use this GROUP BY to get 5 results:
GROUP BY date.id, `pump1`.owner

but remember that mysql takes the first puymp1.TVater1 it gets but you can use the group functions:
http://dev.mysql.com/doc/mysql/en/group-by-functions.html

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
April 05, 2005 12:20AM
April 05, 2005 12:31AM
April 05, 2005 12:53AM
April 05, 2005 01:24AM
April 05, 2005 01:43AM
Re: Help!!!
April 05, 2005 03:17AM
April 05, 2005 04:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.