U moet SUM en dan ORDER BY deze samenvattingswaarde:
SELECT TOP 3 ProductID, SUM(Quantity) as qSum
FROM Table
GROUP BY ProductID
ORDER BY qSum DESC
U moet SUM en dan ORDER BY deze samenvattingswaarde:
SELECT TOP 3 ProductID, SUM(Quantity) as qSum
FROM Table
GROUP BY ProductID
ORDER BY qSum DESC