Interactive SQL exercises

Solved SQL exercises: practise from beginner to advanced

Practise SQL online through progressive business cases. Each exercise provides fictional data, hints, result validation and an explained solution.

62canonical experiencesEach canonical experience teaches a distinct reasoning pattern; reused scenarios are labelled separately.
360+training variantsThe 360 additional datasets are labelled as training variants.
62 exercises shown
Training scenariosThese contextual repetitions reinforce an existing method. They preserve every historical link without pretending to be new canonical problems.Browse 118 scenarios
118 exercises shown
TRANSACTION · SAVEPOINT · ROLLBACKSQL Pro

Protect an HR change 4 · training scenario

Commit a correct change and undo only the incorrect step. You must produce the result, control it on the source data and explain what it allows you to decide in this human resources management.

Level : AdvancedCompare plans
CREATE INDEX · EXPLAINSQL Pro

Index an HR search 4 · training scenario

Create a targeted index and then verify its presence before interpreting a plan. You must produce the result, control it on the source data and explain what it allows you to decide in this human resources management.

Level : AdvancedCompare plans
ROLE · GRANT · REVOKESQL Pro

Grant read access hr 4 · training scenario

Apply the principle of least privilege to a laboratory table. You must produce the result, control it on the source data and explain what it allows you to decide in this human resources management.

Level : AdvancedCompare plans

Two focused paths reuse these experiences.

Progress remains shared: no content is duplicated.

3 exercises are available without an account, followed by 12 more in the free Discovery space. The catalogue contains a total of 62 canonical experiences. Run a first query.