Course details
SQL
Learn how relational databases think and how to talk to them in SQL. You will create tables, add and change rows, summarise data with aggregates, and protect it with constraints — all on one small shop database.
Course curriculum
Learn the Basics3 lessons
Meet tables, rows, columns and keys through a small shop database, weigh what relational systems are good and bad at, and see where NoSQL stores fit instead.
Basic SQL Syntax4 lessons
Learn how a statement is put together from keywords, pick sensible data types, combine conditions with operators, and ask your first real questions with SELECT.
Data Definition Language (DDL)4 lessons
Build the shop's tables with CREATE TABLE, change them safely with ALTER TABLE, and learn exactly how TRUNCATE and DROP differ before you ever run them on real data.
Data Manipulation Language (DML)3 lessons
Put data into the shop with INSERT, change it with UPDATE and remove it with DELETE, using one habit — preview with SELECT first — that keeps every change deliberate.
Aggregate Queries5 lessons
Count, total, average and find extremes with COUNT, SUM, AVG, MIN and MAX, then answer 'per customer' and 'more than' questions with GROUP BY and HAVING.
Data Constraints4 lessons
Give every row an identity with primary keys, link tables safely with foreign keys, and write business rules into the schema with UNIQUE, NOT NULL and CHECK.
