MySQL Forums
Forum List  »  Newbie

Re: MYSQL QUERY HELP GROUP BY
Posted by: Peter Brawley
Date: June 19, 2014 08:03AM

Normalise the data to get the sales numbers into one column eg ...

sales(weekno smallint, id smallint, qty smallint)

then you can Group By weekno and id (Group By is a function, not a class), and order the results as desired.

Options: ReplyQuote


Subject
Written By
Posted
June 19, 2014 07:13AM
Re: MYSQL QUERY HELP GROUP BY
June 19, 2014 08:03AM


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.