Step 1 of 5, about 4 minutes left

0 XP earned in this lesson

The shelter's website lists 3 pets per page. Who's on page 2?

Sorting by two columns

When many rows tie on the first column, add a second one, separated by a comma. ORDER BY species, age DESC sorts by species first (birds, cats, dogs, rabbits), and within each species puts the oldest first.

Each column gets its own direction: here species goes A to Z and age goes high to low.

Try it: press Run
SELECT species, name, age FROM pets ORDER BY species, age DESC;