MySQL Forums
Forum List  »  Newbie

Re: QUERY HELP
Posted by: Peter Brawley
Date: December 21, 2016 01:55PM

> ) where total=5000;
> #1248 - Every derived table must have its own alias

Read again. You omitted the alias of the derived table, 'x'.

> not returning of the column that their sum equals 5000

Unclear. You mean you want the individual amounts which sum to 5000? Have a look at Group_Concat() in the manual.

Options: ReplyQuote


Subject
Written By
Posted
December 21, 2016 11:28AM
December 21, 2016 11:55AM
December 21, 2016 12:06PM
Re: QUERY HELP
December 21, 2016 01:55PM
December 21, 2016 03:39PM
December 21, 2016 12:53PM


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.