MySQL Forums
Forum List  »  Newbie

Re: Total Stock (Roll Up)
Posted by: Peter Brawley
Date: April 14, 2018 02:02PM

Read the manual page on Group By.

select supplier, Sum(quantity) as Units_Sold
from sales
group by supplier with rollup;

Options: ReplyQuote


Subject
Written By
Posted
April 14, 2018 08:25AM
April 14, 2018 08:43AM
Re: Total Stock (Roll Up)
April 14, 2018 02:02PM


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.