Databases and SQL
The relational model, ERDs, keys and normalisation, then SQL queries that join tables and aggregate. You run the queries right in the browser.
1 lesson5 tasks135 points in totalTask difficulty: 1 easy, 4 medium
Company data does not live in spreadsheet files but in databases. Here you learn to design them without duplicates and to ask them questions in SQL.
Lessons
Read first, then practise on the tasks.
Tasks
Reading an ERD and the M:N relationship
choice10 ptsERDcardinalityjunction tableWhich normal form is broken?
choice15 ptsnormalisation2NF3NFanomaliesHow many rows does a LEFT JOIN return?
number15 ptsSQLJOINLEFT JOINCustomer spend in SQL
code25 ptsSQLJOINGROUP BYHAVINGsqliteDesign the tables for a library
text20 ptsdatabase designERDkeysnormalisation