Content Supported by Sourcelens Consulting
SELECT TOP 10 Products.prod_name,;
SUM( Orditems.unit_price* Orditems.quantity);
FROM testdata!products INNER JOIN testdata!orditems ;
ON Products.product_id = Orditems.product_id;
GROUP BY Products.prod_name;
ORDER BY 2 DESC