MySQL Forums
Forum List  »  General

Re: Can't get my complex Select running correct
Posted by: Peter Brawley
Date: August 17, 2013 09:56AM

select a,b,c,d,sum(this),sum(that)
...
group by a

will return arbitrary results for columns b,c,d. To avoud that, group by a,b,c,d.

If you want readers to see your DDL, post it here as Create Table statements. Most of us are understandably hesitant to click on urls of unknown provenance.

Options: ReplyQuote


Subject
Written By
Posted
Re: Can't get my complex Select running correct
August 17, 2013 09:56AM


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.