×

sql · level 1 · unit 1 · lesson 2

  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

SELECT * FROM pets; means show me everything in pets.

The questions you write are in , a language made for talking to databases. A question written in SQL is called a . Here is the most useful one there is.

SELECT and FROM are keywords: words with a special job. SELECT means show me. The star * means every column. FROM pets names the table to look in.

The ; finishes the query, like a full stop. The answer comes back as a grid, with the column names on the top line and a | between columns.

SELECT * FROM pets;

SQL does not mind if you type select in small letters, but capitals make keywords stand out.