Solusi1:
SELECT t1.* FROM your_table t1
JOIN (
SELECT MIN(value) AS min_value, dealer
FROM your_table
GROUP BY dealer
) AS t2 ON t1.dealer = t2.dealer AND t1.value = t2.min_value
Solusi2:
SELECT t1.* FROM your_table t1
LEFT JOIN your_table t2
ON t1.dealer = t2.dealer AND t1.value > t2.value
WHERE t2.value IS NULL
Masalah ini sangat terkenal, jadi ada halaman khusus untuk ini di manual MySQL.
Periksa ini:Baris Memegang Grup-bijaksana Maksimum/Minimum Kolom Tertentu