Intro to databases
Tables, rows, columns: understanding a relational database
Selecting data
SELECT, FROM, WHERE: read data from a table
Filtering and sorting
AND/OR, LIKE, IN, ORDER BY: refine and order results
Aggregating and grouping
COUNT, SUM, GROUP BY: compute statistics
Joins
INNER and LEFT JOIN: link multiple tables
Modifying data
INSERT, UPDATE, DELETE: write and change data
Designing and securing
CREATE, keys, and the #1 flaw: SQL injection
What you will learn
Understand the relational model: tables, keys, relations
Write SELECT queries to read any data
Join multiple tables together
Compute statistics with aggregates
Modify data without breaking everything
Protect against SQL injection with prepared statements
Play to practise
Free games to practise SQL while having fun.