My database structure contains columns: id, name, value, dealer. I want to retrieve row with lowest value for each dealer. I’ve been trying to mess up with MIN() and GROUP BY, still – no solution.
My database structure contains columns: id, name, value, dealer . I want to retrieve
Share
Solution1:
Solution2 (recommended, much faster than solution1):
This problem is very famous, so there is a special page for this in Mysql’s manual.
Check this: Rows Holding the Group-wise Maximum/Minimum of a Certain Column