CleverSphere

SQL practice: write queries and have them checked directly

SELECT, GROUP BY, HAVING, JOIN and subqueries: write the query and run it straight away. The result counts, also on data you can’t see. Five problems, new every day.

  1. 1 · Aggregate functions
  2. 2
  3. 3
  4. 4
  5. 5

How many students are there?

students

idnamemajorsemestercity
1BenBusiness7Bern
2JonasBusiness3Zürich
3MaxComputing6Bern
4ClaraChemistry5Basel
5LenaLaw5Bern
6HannahChemistry2Zürich
7GretaComputing5Basel
+ More tables: courses, grades

courses

idtitlecreditslecturer
1Calculus4Meier
2Marketing4Huber
3Databases3Keller
4Statistics4Keller

grades

student_idcourse_idgrade
232.3
541.7
224
411
213.7
323.3
632.7
242
621.3
333.3
131

SQL

Any equivalent query counts. It is also checked on data you can’t see.

Keep practising for free, with your progress

The basics without a daily limit in a free account, plus one exam-level task a day. Every level, the exam mode and the AI tutor from €4.99 once or with Plus.

Topics with rules and practiceSELECT & WHERE · ORDER BY · Aggregate functions · Reading queries …
How the trainer works

Real queries, not multiple choice

Write SQL and run it at once. Any equivalent query counts; the result is checked on the sample data and on hidden data.

With worked solutions

After each problem you see the solution step by step and the typical mistake that costs marks in the exam.

Always new problems

Every problem is generated with new numbers, without AI and always computed correctly. You practise the method, not memorising answers.