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.
B
Read-only SQLThe query studies
Learn by following a key.
Selections, joins, and questions worth asking.
Loading prepared queries…
An open page
Ask the next question.
Write a SELECT or WITH query. The schema below has every table and column.
Ln 1, Col 1SQL
Ctrl↵ to run
C
15 tablesThe schema dictionary
Every table. Every key. Open an entry to inspect, insert, or preview.
PK Primary keyFK Foreign keyNULL Optional
Loading table definitions…