Hotel SQL StudioAn interactive relational atlas
An independent study of keys & connections

Hotel database / A practical companion

A study in
relationships.

Every key points somewhere.
Find out where.

15 tables, 39 columns, 26 relationships.

Explore the source model and ask your own questions in SQL.

Preparing SQLite…Loading the learning dataset
B

The query studies

Read-only SQL

Learn by following a key.

Selections, joins, and questions worth asking.

01–25
25 exercisesStudy / SQL / Result

Loading prepared queries…

SQLite in this browser500-row display limit
C

The schema dictionary

Every table. Every key. Open an entry to inspect, insert, or preview.

15 tables

PK Primary keyFK Foreign keyNULL Optional

Loading table definitions…

Read the dataset notes

From the table dictionary

Table rows