Loading...
Loading...
Section 08 · Stage 3: Core CS & SQL
Design tables, write queries, joins and indexes, and use SQL from Python.
Why applications store data in a database and how to get MySQL 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, CTEs 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, practise interview SQL, and port the database to PostgreSQL.