MySQL Forums
Forum List  »  General

Re: GET COMBINED SUM FROM GROUPED LEFT JOIN
Posted by: Peter Brawley
Date: July 15, 2016 10:17AM

...sum( if col=1,1,0) ) as sumOfColOnes, sum( if(col=2,2,0) ) as sumOfColTwos, ...

Options: ReplyQuote


Subject
Written By
Posted
Re: GET COMBINED SUM FROM GROUPED LEFT JOIN
July 15, 2016 10:17AM


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.