MySQL Forums
Forum List  »  Newbie

Re: Select Sum(~~~), Sum(~~~) Error. :(
Posted by: Jörg Z
Date: July 26, 2016 12:27AM

I'm not sure if my answer is helpful. But your question seems to be a bit similiar to my problem: How can I collect results to be shown in one row. My solution (without sum but with the max() function) is documented here:
[link]http://forums.mysql.com/read.php?10,648188,648414#msg-648414[/link].
The general way ist to define a main query which gives the structure (the output to be seen) and subqueries. The subqueries bring out the results and the main query gives the layout of the result. Hope that this hint is helpfull for you.

Options: ReplyQuote


Subject
Written By
Posted
Re: Select Sum(~~~), Sum(~~~) Error. :(
July 26, 2016 12:27AM


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.