Try before you join
Your first SQL answer, right now
A football club needs one answer. Complete a real query and see what the database returns. No account needed.
This is a short, anonymous preview. It does not save progress, grant XP or store your query.
The request
Show the name of every player in players. Fill in the missing column and run the query.
Your table for this task
playersSquad, with their team and position.
SQL names and exercise values do not change with the language: use them exactly as shown. We marked the columns this task needs.
Tap a name to copy it; it will not insert itself into your query.
Take a peek at the data
| player_id | team_id | player_name | position | joined_date |
|---|---|---|---|---|
| 1 | 1 | Iker Salas | goalkeeper | 2022-07-01 |
| 10 | 2 | Sofia Lindqvist | defender | 2023-03-03 |
| 11 | 3 | Peter Adeyemi | midfielder | 2021-01-11 |
Getting the database ready…
The idea behind the query
How do you answer a question with SQL?
SQL helps you ask a database for specific information. Here the question comes from a football club, and the answer is a table of player names. You do not need to install anything to try it.
Start with the question
The club wants to know who is in the squad. The
playerstable holds one row per player. Look at its column names to find the one with player names; you do not need every detail about each player.Choose what to read
SELECTchooses the column to return.FROMnames the table to read. The editor already has the table; your job is to fill the missing column.SELECT *would return more columns than the question asks for.Check the result
Run the query and read the returned rows. Each row should give one player name. If the result is not what the club asked for, change the query and run it again; a mistake is part of the practice.
This is one small SELECT exercise. In the courses you also learn to filter, combine and summarize data; EasyQL lets you explore your own CSV and Excel files.