Returning all data from a table
Select some columns
4. Select multiple columns
Filtering rows
Logic
Text patterns
To be or NULL to be
A bit of mathematics
Let's practice

Instruction

Great! If you want to get a couple columns from a table, simply list their names after the SELECT clasue. So to get the names and ages of all users, type:

SELECT
  Name,
  Age
FROM User;

Note that you separate the names of the columns with a comma (,).

Exercise

Select the model and price of each car.

Stuck? Here's a hint!

Type:

SELECT
  Model,
  Price
FROM Car;