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.

Aggregate FunctionsYou do not have <strong>to</strong> list any ordinary columns inthe list after the SELECT keyword for the query <strong>to</strong>work, but if you don’t then what comes back willprobably be difficult <strong>to</strong> interpret.We do not have <strong>to</strong> limit ourselves <strong>to</strong> only oneordinary column. We can “nest” our grouping byspecifying more than one column, and creating anappropriate grouping in the GROUP BY clause.

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

Saved successfully!

Ooh no, something went wrong!