← Back to Homepage
0 · Reading the Schema 1 · Query 1 2 · Query 2 3 · Query 3 4 · Query 4

Reading the Schema

Before any SQL, every one of these queries starts with the same question: how does this data actually fit together? The published ER diagram for this database turns out to have six connectors drawn incorrectly — caught not by assumption, but by checking every relationship directly against the live schema. Step through how that happened, and how the diagram gets reorganized once it's corrected.

Step 1 of 5