Module 13 (Introduction to SQL - Part 2).pdf
Module 13 (Introduction to SQL - Part 2).pdf
Module 13 (Introduction to SQL - Part 2).pdf
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Compound JOINsAs the query computes the actual prices, theSum() function forces them <strong>to</strong> be groupedby ProductName (which is what we want<strong>to</strong> see in the report).Further, we want the products themselvesgrouped by category. This is what the twoelements in the GROUP BY clause are for.