MySQL Forums
Forum List  »  Newbie

Re: Select 9 Columns, Subtotal Only Based on First Column
Posted by: Darren McGettigan
Date: July 03, 2018 12:55PM

Not getting the result I am looking for. If I add 'HAVING ISNULL(CustomerName)' I get the subtotal for each 'CustomerNumber' that I am looking for, but I would still like to see all of the transactions as well.

Ideally, I am looking for the subtotal function from Excel, at each change in 'CustomerNumber' sum the column 'TotalSale'

Options: ReplyQuote




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.