The PostgreSQL administration field guideField notes · Runbooks · Free certification

Practise · Real PostgreSQL

SQL lab

Use real SQL to complete a guided task in a temporary PostgreSQL database. Your lab is isolated from every other learner and is removed when you finish or when it expires.

Your goal

Repair seeded inconsistency and prove both the repaired rows and constraint behaviour meet the requirement.

What to do

  1. Start your temporary database.
  2. Read the task and run SQL in the workspace.
  3. Check your work. The server will inspect the database state.
  4. When every task passes, continue to the assessment.

Managed PostgreSQL workspace

Real SQL lab

A billing repair must update one account without allowing a negative balance or a half-finished change.

Your database is temporaryIt is private to this lab and deleted when you finish or it expires.

Goal

Make a constrained data change inside a transaction and prove that invalid account balances cannot be committed.

Start when you are ready. Creating your private database can take a few seconds. You do not need a Neon account.