Skip to Content
Head First SQL, 2nd Edition
book

Head First SQL, 2nd Edition

by Kimberly Fessel
June 2026
Beginner
700 pages
16h 50m
English
O'Reilly Media, Inc.
Content preview from Head First SQL, 2nd Edition

Chapter 6. Advanced Select Sorting and Aggregating

Image

It’s time to take your SELECT to new heights. You already know how to SELECT data and use WHERE clauses. But sometimes your queries need a little more altitude than what SELECT and WHERE can achieve alone.

In this chapter, you’ll learn how to sort your data in multiple ways. You’ll build data groups and perform mathematical calculations on your results. And in CASE you need new categories, you’ll learn how to pull the rip cord with if-then-else logic for your own classifications. Make the SELECT jump and here we go!

Shopping around

Since the last chapter ended, your pal Josh has been busy, very busy.

Image
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Head First SQL

Head First SQL

Lynn Beighley
Learning SQL

Learning SQL

Ben Forta

Publisher Resources

ISBN: 9781098163648Errata Page