×

sql · level 1 · unit 1 · lesson 3

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Name the columns you want, with commas in between.

Tables can have lots of columns, and often you need only a few. Swap the star for the names of the columns you want, with a comma between each one.

Each box where a row meets a column holds one , like Rex or 3. The you get back has your columns, in the order you listed them.

You can ask several queries in one go. Each one ends with its own semicolon, and each result appears in turn, with a blank line between.

SELECT name, age FROM pets;

The commas go between the column names, never after the last one.