Relational Data
- Tables. Relational data lives in tables: rows are the things, columns are their facts, and every cell is one value.
- Relationships by key. Tables relate through keys: an order row carries the customer id that names exactly one customer row.
- Set thinking. SQL thinks in sets: you describe the rows you want, and the database finds them: no loops, no indexes to walk.
Queries vs Application Code
- Declarative queries. A query is declarative: it states WHAT you want, and the database’s planner decides HOW to fetch it.
- Push work to the database. Filtering and summing belong in the database: shipping a million rows to code that keeps ten is the classic waste.
- One language, many engines. Standard SQL runs everywhere; each engine: Postgres, MySQL, SQLite: adds its own dialect at the edges.
Before and after this level
- Before: nothing. This is where the course starts.
- Next: Level 1: Query Foundations: SELECT and Columns, Filtering and Sorting, Basic Query Construction.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does SQL: Start Here: Think in Tables and Sets cover?
Relational Data, Queries vs Application Code: 2 lessons and 6 ideas.
Is this level free?
Yes. Start Here: Think in Tables and Sets is the free first level of the SQL course, with its checkpoint and flashcards.