Level 2 — Intermediate
These lessons cover joins, subqueries, common table expressions, CASE, set operations, constraints and keys, database design and normalization, views, and working with SQL from application code. Recommended: the Level 1 lessons, especially filtering, aggregation, and GROUP BY.
Lessons in this module
- 1. Joining Tables: INNER JOIN 6 min
- 2. Table Aliases and Multi-Table Joins 5 min
- 3. LEFT JOIN: Keeping Unmatched Rows 5 min
- 4. RIGHT JOIN, FULL OUTER JOIN, and CROSS JOIN 5 min
- 5. Self-Joins 4 min
- 6. Subqueries 6 min
- 7. Correlated Subqueries and EXISTS 5 min
- 8. Common Table Expressions (WITH) 6 min
- 9. CASE Expressions 5 min
- 10. Set Operations: UNION, INTERSECT, EXCEPT 4 min
- 11. Constraints and Foreign Keys 6 min
- 12. Designing Tables and Relationships 6 min
- 13. Normalization 6 min
- 14. Views 4 min
- 15. Upserts: Insert or Update 4 min
- 16. Using SQL from Application Code 6 min
- 17. Importing and Exporting Data 5 min
- 18. SQL Dialects: PostgreSQL, MySQL, SQL Server, SQLite 5 min