SyntaxFix
Write A Post
Hire A Developer
Questions
Efficient way (with any number of records):
SELECT id, name, MIN(price) FROM (select * from table order by price) as t group by id