I have a table full of magazines, and need to extract the latest unique issue of each magazine.
Ive tried
SELECT DISTINCT magazine F
SELECT id, MAX(onSale) as latest, magazine FROM product GROUP BY magazine ORDER BY latest DESC