All courses
SQLIntermediate
Database Design and Data Changes
Change data safely, then design, link and tune your own tables in SQLite.
Recommended first: SQL Fundamentals. This course builds on it.
Free to browse. You sign in at the first lesson so your progress is saved.
What you will be able to do
- Add, change and remove rows safely with INSERT, UPDATE and DELETE
- Create tables with sensible types, primary keys and constraints
- Link tables with foreign keys, including many-to-many relationships
- Split a flat, repetitive table into related tables
- Use indexes, views and transactions where they help
Syllabus
7 modules and 22 lessons. Each lesson is a short read followed by an exercise with tests.
Module 1Changing data
Add, change and remove rows, and check exactly what changed.6 lessons, about 1 hour
- 1Adding a rowAdd a new row to a table with INSERT.12 min
- 2Adding several rows at onceInsert many rows with a single INSERT statement.10 min
- 3Copying rows with INSERT and SELECTFill a table with the results of a query.12 min
- 4Changing rows with UPDATEChange values in existing rows, and only the rows you mean to.12 min
- 5Removing rows safelyDelete rows with DELETE, and check what will go before you run it.14 min
- 6Seeing changes with RETURNINGGet back the rows an INSERT, UPDATE or DELETE touched.10 min