 SELECTing certain columns
SELECTing certain columns
Let's dig into our database. This database has 9 columns:
- model- model of the car
- year- year of manufacture
- price- car price in Euros
- transmission- type of gearbox
- mileage- miles drove
- fueltype- engine fuel type
- tax- road tax
- mpg- miles per gallon
- enginesize- engine size in liters.
To extract certain columns you need to select them by their names, like:
12SELECT 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.
Swipe to start coding
Extract columns model, year, and price from the audi_cars database.
Solution
Merci pour vos commentaires !
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Awesome!
Completion rate improved to 2.63 SELECTing certain columns
SELECTing certain columns
Glissez pour afficher le menu
Let's dig into our database. This database has 9 columns:
- model- model of the car
- year- year of manufacture
- price- car price in Euros
- transmission- type of gearbox
- mileage- miles drove
- fueltype- engine fuel type
- tax- road tax
- mpg- miles per gallon
- enginesize- engine size in liters.
To extract certain columns you need to select them by their names, like:
12SELECT 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.
Swipe to start coding
Extract columns model, year, and price from the audi_cars database.
Solution
Merci pour vos commentaires !
single