12.07.2015 Views

Module 13 (Introduction to SQL - Part 2).pdf

Module 13 (Introduction to SQL - Part 2).pdf

Module 13 (Introduction to SQL - Part 2).pdf

SHOW MORE
SHOW LESS

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.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!