

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 2
click for more info
Not enough gems
Cost: 6 gems
1: Welcome to Learn SQL
incomplete
2: Select Single Column
incomplete
3: Select Multiple Columns
incomplete
4: What Is SQL?
incomplete
5: Which Databases Use SQL?
incomplete
6: NoSQL vs. SQL
incomplete
7: Comparing SQL Databases
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
As you probably guessed, if you can select all columns with a *, and you can select a single column by name, you can probably also select multiple columns by name. Here's the syntax:
select column_one, column_two, column_three from table_name;
For example, if I had a table of monster records for a game, I might write:
select health, damage, defense from monsters;
All SQL statements must end with a semicolon ;.
Update the query to select the:
agenamebalancecolumns in that order.
Remember, our users table in CashPal has this schema:
| id | name | age | balance | is_admin |
|---|---|---|---|---|
| 1 | John Smith | 28 | 450 | 1 |
| 2 | Darren Walker | 27 | 200 | 1 |
| 3 | Jane Morris | 33 | 496.24 | 0 |