I would like to display the top 3 records from the existing Orders table. In order to accomplish this, I need to calculate the sum of each product\'s quanti
SELECT TOP 3 ProductID, SUM(Quantity) as SUMQUANTITY FROM Table1 GROUP BY ProductID ORDER BY SUMQUANTITY desc
SQL Fiddle Demo
You need to SUM and then ORDER BY this summary value:
SUM
ORDER BY
SELECT TOP 3 ProductID, SUM(Quantity) as qSum FROM Table GROUP BY ProductID ORDER BY qSum DESC