A short test, with no score

SQL level test: 8 questions to help you choose where to start

Answer eight situations ordered by prerequisite. The recommendation starts at the first foundation you need to strengthen, not from an overall score.

What it measures and what it does not

The test checks whether you can interpret common decisions along the path: where rows come from, filters, missing values, grouping, relationships, subqueries, safe changes and window functions.

  • There is no time limit and no locked content.
  • A correct answer shows recognition and initial reasoning, not practical mastery.
  • The recommendation puts the first missing prerequisite first, even if you get later questions right.
  • To confirm your level, you will then need to solve a query without looking at the solution.

How the recommendation is built

The questions follow the order in which the course's topics depend on each other. If you miss an early foundation, the recommendation starts there even if you get a later technique right, because recognising an advanced feature does not make up for a shaky prerequisite.

Choose the best decision

Read each situation in full. You can change your answers and repeat the test as many times as you need.

In a customers table, what does a row usually represent?
In SELECT name FROM customers WHERE city = 'London', which part decides which table the rows come from?
Which condition finds customers whose phone number has not been recorded?
After grouping orders by status, which clause filters the groups based on COUNT(*)?
You need to list every customer, including those with no orders. Which operation keeps the customer rows?
An engine rejects a comparison with = (subquery) because the subquery returns multiple rows. What should you check first?
Before running a UPDATE or DELETE with a condition, which check reduces the risk?
Two products have the same price. How do you make the numbering stable for ROW_NUMBER()?

Confirm what you can apply

These queries do not change your test answers. They record separate written evidence and let you go back to the questions. Open the one that matches the recommended foundation.

1. Confirm in writing: read another part of the table

Practice

Read another part of the table

Not started

Show name and city for every customer, in that column order.

Expected result: 12 rows with the columns name, city, in that order. Row order does not matter.

View tables and data

Open this panel to see the full data.

Go back to the questions and review my starting point
2. Confirm in writing: build a catalogue

Practice

Build a catalogue

Not started

Show the id and name of every category. Keep that column order; any row order is fine.

Expected result: 5 rows with the columns id, name, in that order. Row order does not matter.

View tables and data

Open this panel to see the full data.

Go back to the questions and review my starting point
3. Confirm by typing: Combine absence with another condition

Practice

Combine absence with another condition

Not started

Show name and city of the active customers (active = 1) who have no email.

Expected result: 2 rows with columns name, city, in that order. The order of the rows does not matter.

View tables and data

Open this panel to see the full data.

Go back to the questions and review my starting point
4. Confirm by typing: Filter groups by a sum

Practice

Filter groups by a sum

Not started

Show category and SUM(stock) as units. Keep only the categories that add up to at least 10 units.

Expected result: 2 rows with columns category, units, in that order. The order of the rows does not matter.

View tables and data

Open this panel to see the full data.

Go back to the questions and review my starting point
5. Confirm in writing: keep even what is missing

Practice

Keep even the gaps

Not started

Show the customer name and p.id as order_id for every customer. Match only their shipped orders, inside ON.

Expected result: 14 rows with the columns name, order_id, in that order. Row order does not matter.

View tables and data

Open this panel to see the full data.

Go back to the questions and review my starting point
6. Confirm in writing: get a list

Practice

Get a list

Not started

Show the names of customers whose id is in the list of customer_id values from shipped orders. Use a subquery with IN.

Expected result: 7 rows with the column name, in that order. Row order does not matter.

View tables and data

Open this panel to see the full data.

Go back to the questions and review my starting point
7. Confirm in writing: update another order

Practice

Update another order

Not started

Change only the status of order 105 to 'shipped'. Query id and status before and after the change.

We check the full final state: the change you were asked to make and that every other row is untouched. Review the output of each statement too.

Every attempt resets the data, so include all the steps you need to check in a single attempt.

View tables and data

Open this panel to see the full data.

Go back to the questions and review my starting point
8. Confirm in writing: then restart per group

Practice

Then restart for each group

Not started

Show name, department and ROW_NUMBER as position. Restart for each department and number by salary descending and id ascending. Sort by department and position.

Expected result: 10 rows with the columns name, department, position, in that order. Keep the row order requested.

View tables and data

Open this panel to see the full data.

Go back to the questions and review my starting point

How to confirm the recommendation

  1. Open the suggested lesson. Read the example, but do not copy its solution.
  2. Complete a practice task. Write the query and predict at least one row of the result.
  3. Explain the decision. If you can justify every clause and fix a variant, carry on from the next lesson.

If the practice task is still hard, keep that entry point even if your overall score looks high.

Practise without following an exercise

If you already know what you want to try, use the free-form SQL editor with the AprenderSQL.es practice database.

Open the SQL editor →