Conteúdo do Curso
SQL Basics
SQL Basics
SELECTing certain columns
Let's dig into our database. This database has 9 columns:
model
- model of the caryear
- year of manufactureprice
- car price in Eurostransmission
- type of gearboxmileage
- miles drovefueltype
- engine fuel typetax
- road taxmpg
- miles per gallonenginesize
- engine size in liters.
To extract certain columns you need to select them by their names, like:
SELECT column1, column2, column3 FROM table_name
Please note, that SQL is also case-insensitive to column names, i.e. if the column has name id both notations id
and ID
will be interpreted the same.
Tarefa
Extract columns model
, year
, and price
from the audi_cars
database.
Obrigado pelo seu feedback!
SELECTing certain columns
Let's dig into our database. This database has 9 columns:
model
- model of the caryear
- year of manufactureprice
- car price in Eurostransmission
- type of gearboxmileage
- miles drovefueltype
- engine fuel typetax
- road taxmpg
- miles per gallonenginesize
- engine size in liters.
To extract certain columns you need to select them by their names, like:
SELECT column1, column2, column3 FROM table_name
Please note, that SQL is also case-insensitive to column names, i.e. if the column has name id both notations id
and ID
will be interpreted the same.
Tarefa
Extract columns model
, year
, and price
from the audi_cars
database.
Obrigado pelo seu feedback!
SELECTing certain columns
Let's dig into our database. This database has 9 columns:
model
- model of the caryear
- year of manufactureprice
- car price in Eurostransmission
- type of gearboxmileage
- miles drovefueltype
- engine fuel typetax
- road taxmpg
- miles per gallonenginesize
- engine size in liters.
To extract certain columns you need to select them by their names, like:
SELECT column1, column2, column3 FROM table_name
Please note, that SQL is also case-insensitive to column names, i.e. if the column has name id both notations id
and ID
will be interpreted the same.
Tarefa
Extract columns model
, year
, and price
from the audi_cars
database.
Obrigado pelo seu feedback!
Let's dig into our database. This database has 9 columns:
model
- model of the caryear
- year of manufactureprice
- car price in Eurostransmission
- type of gearboxmileage
- miles drovefueltype
- engine fuel typetax
- road taxmpg
- miles per gallonenginesize
- engine size in liters.
To extract certain columns you need to select them by their names, like:
SELECT column1, column2, column3 FROM table_name
Please note, that SQL is also case-insensitive to column names, i.e. if the column has name id both notations id
and ID
will be interpreted the same.
Tarefa
Extract columns model
, year
, and price
from the audi_cars
database.