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.

GroupingIn the first query, the summary records returnedwill be grouped by ShipVia first (stronger sort),then by Cus<strong>to</strong>merID (weaker sort).In the second query, the summary records returnedwill be grouped by Cus<strong>to</strong>merID first, then byShipVia.Which one <strong>to</strong> use entirely depends on what useyou wish <strong>to</strong> make of the returned data.

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

Saved successfully!

Ooh no, something went wrong!