PostgreSQL Exercises

FreeDatabases & SQLpgexercises.com

Best for: Practising SQL past the basics

Overview

Free SQL practice problems on a sample club-booking database, from simple selects to window functions and recursive queries, run against real PostgreSQL.

Strengths

  • Real PostgreSQL behind it
  • Covers advanced queries

Drawbacks

  • One sample schema throughout

Alternatives to PostgreSQL Exercises

See all 11 →

Entity Framework Core

The default data layer for most .NET apps
Free

Microsoft's ORM for .NET. Map C# classes to tables, query with LINQ, and manage schema changes with migrations. Works with SQL Server, PostgreSQL (via Npgsql), SQLite and others.

Dapper

Hand-written SQL without boilerplate
Free

Lightweight object mapper: you write the SQL, Dapper maps the rows to C# objects. Very little overhead, which is why it's often used next to EF Core for performance-critical queries.

PostgreSQL documentation

Checking how Postgres really behaves
Free

The official PostgreSQL manual. Unusually readable; the chapters on indexes, MVCC and EXPLAIN are worth reading in full.