MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: Inner Join Vs Max Problem
Posted by: Bob Field
Date: January 15, 2007 04:52PM

SELECT x1.Name, x2.Price AS Max_Price, x2.Description
FROM x1
JOIN x2 ON x1.Id = x2.IdX1
LEFT JOIN x2 AS x2a ON x2.IdX1 = x2a.IdX1 AND x2.Price < x2a.Price
WHERE x2a.Price IS NULL;

Options: ReplyQuote


Subject
Views
Written By
Posted
5383
January 15, 2007 07:45AM
Re: Inner Join Vs Max Problem
2318
January 15, 2007 04:52PM


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.