Loading...
Loading...
Section 12 · Stage 4: Build Applications
Design tables, write SQL from simple queries to joins and aggregates, and understand indexes and transactions.
Why applications store data in a database and how to get PostgreSQL running on your computer.
Create tables with the right column types so the database stores data correctly.
Let the database reject bad data with primary keys, foreign keys and other constraints.
Change the data in your tables safely and see what changed.
Read exactly the rows and columns you need with SELECT.
Turn many rows into totals, counts and averages for reports.
Combine data from several tables, the most asked SQL skill in interviews.
Answer harder questions with queries inside queries and ranking functions.
Turn a requirement into a clean set of tables without duplicate or inconsistent data.
Understand why some queries are slow and how indexes make them fast.
Group changes so they all succeed or all fail, even when many users work at once.
Design and query the ShopLite store database that the next sections build on, plus interview-style SQL practice.
These sections are ready to study now.