Skip to main content

Section 12 · Stage 4: Build Applications

SQL & Database Design

Design tables in MySQL, write SQL from simple queries to joins, window functions and reports, and understand indexes and transactions, then see the same ideas in PostgreSQL.

What you will be able to do

  • Install MySQL and run SQL from the mysql client and MySQL Workbench
  • Design normalised tables with keys and constraints from a written requirement
  • Write queries with filters, sorting, joins, grouping, subqueries and window functions
  • Explain how an index speeds up a query and read a query plan with EXPLAIN
  • Use transactions and explain ACID with a money-transfer example
  • Build the ShopLite store database that later sections turn into an application, and port it to PostgreSQL

What you will learn

  1. 12.1Databases & MySQL Setup8 lessons
  2. 12.2Creating Tables & Data Types9 lessons
  3. 12.3Keys & Constraints7 lessons
  4. 12.4Inserting, Updating & Deleting Data7 lessons
  5. 12.5Querying Data10 lessons
  6. 12.6Aggregates & Grouping7 lessons
  7. 12.7Joins9 lessons
  8. 12.8Subqueries, Views & Window Functions10 lessons
  9. 12.9Database Design & Normalisation9 lessons
  10. 12.10Indexes & Query Performance9 lessons
  11. 12.11Transactions & ACID8 lessons
  12. 12.12SQL Practice, ShopLite & PostgreSQL7 lessons