MySQL Forums
Forum List  »  PHP

Re: Problem with sub query
Posted by: Peter Brawley
Date: March 24, 2021 04:20PM

The query ...
select x, max(y) from t where...
without a Group By clause, will return one row at most containing a max(y) value and an entirely arbitrary value of x---an x value that has nothing to do with that max(y) result. What in the world is the use to you of such an arbitrary value?

Please post a statement in clear English of the query requirement ... then we can help you with it.

Options: ReplyQuote


Subject
Written By
Posted
March 24, 2021 10:02AM
Re: Problem with sub query
March 24, 2021 04:20PM


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.