Skip to content

Uncommon SQL 2

20. July 2010
By plogi in general

Hi again!
Continuing the example from yesterday, the following query shows the the real power of that syntax:

MariaDB [tt]> select * from vending_price where (price,product_id) in
                      (select max(price),product_id
                       from vending_price group by product_id);

Comment Feed

No Responses (yet)

You must be logged in to post a comment.