?

SQL Lab

Practice SQL in the browser. No setup, no credentials, no timeouts.

← Back to Daylife Desk

Core SQL

7 packs

Query Crafting

6 packs

PostgreSQL Specific

10 packs

Backend / Production

14 packs

PostgreSQL EXPLAIN basics

EXPLAIN is how PostgreSQL shows the plan it picked for a query.

3 exercises·~35 min

PostgreSQL constraints and integrity

Application validation is useful, but database constraints protect every write path.

4 exercises·~40 min

PostgreSQL row-level security

Row-level security moves some authorization rules into PostgreSQL itself.

4 exercises·~40 min

PostgreSQL app writes

Application SQL is not only SELECT: write paths need predictable conflict handling and returned state.

4 exercises·~45 min

PostgreSQL indexes

Indexes are part of query design, not an afterthought.

4 exercises·~45 min

PostgreSQL reporting tables

High-read dashboards often need precomputed query shapes.

4 exercises·~45 min

PostgreSQL partitioning

Partitioning is a physical design tool for very large tables and retention-heavy workloads.

4 exercises·~45 min

PostgreSQL triggers

Triggers run code automatically when rows change.

4 exercises·~45 min

PostgreSQL upsert and transactions

RETURNING lets you get the inserted or updated row without a second query.

8 exercises·~45 min

PostgreSQL production query patterns

Production SQL is often about making the database do less work predictably.

4 exercises·~50 min

PostgreSQL queues and locks

Small and medium systems often use PostgreSQL as the first durable job queue.

4 exercises·~50 min

PostgreSQL migrations and backup/restore

Production migrations should avoid invalid intermediate states: add nullable columns first, backfill data, then add defaults and NOT NULL constraints.

6 exercises·~50 min

PostgreSQL transactions and race conditions

A race condition appears when two workers read the same old state and both try to write a new state.

6 exercises·~55 min

PostgreSQL Administration & Operations

Essential DBA operations: user management, backups, replication basics, and monitoring queries.

10 exercises·~80 min

Schema & Design

2 packs

Data Analysis

1 pack

Interview Cases

1 pack