SQL & Relational Databases
Master SQL from scratch with live in-browser queries: SELECT filtering, NULL safety, table design & normalization, JOINs, GROUP BY, transactions, CTEs, window functions, and an analytics capstone.
Course Syllabus
1. Database Basics & Querying
0/3 done- 3 min
1. What Is a Database? Tables, Keys & SELECT
Understand relational databases with a spreadsheet analogy, learn rows, columns, and primary keys, and write your first SELECT, WHERE, ORDER BY, and LIMIT queries.
- 2 min
2. Filtering, Pattern Matching & NULL Safety
Write cleaner filters with IN, BETWEEN, LIKE, and DISTINCT, avoid the classic '= NULL' bug using IS NULL, and create dynamic labels with CASE WHEN.
- 2 min
3. SQL Text, Date & Math Functions
Clean messy text with TRIM, LOWER, and COALESCE, format and filter dates cleanly, and perform rounded numeric calculations right inside SQL queries.
2. Designing Tables & Combining Data
0/5 done- 3 min
4. Designing Tables & Foreign Keys
Create clean tables with constraints (PRIMARY KEY, NOT NULL, UNIQUE, DEFAULT) and link tables together safely using Foreign Keys.
- 4 min
5. Database Normalization (1NF, 2NF & 3NF Made Simple)
Learn how to organize tables cleanly without duplicate data bugs: understand 1st, 2nd, and 3rd Normal Form in plain English using real before-and-after table examples.
- 4 min
6. Combining Tables with INNER JOIN & LEFT JOIN
Stitch normalized tables back together with SQL JOINs: master INNER JOIN vs LEFT JOIN visually, understand foreign-key matching, use clean aliases, and query live.
- 3 min
7. Summarizing Data: GROUP BY, Aggregates & HAVING
Turn raw rows into insights using COUNT, SUM, AVG, MIN, and MAX, understand SQL's true execution order, group cleanly with GROUP BY, and filter totals with HAVING.
- 3 min
8. Practice Lab: Real SQL Query Drills
Practice writing SELECT, WHERE, IS NULL, LEFT JOIN, GROUP BY, HAVING, CASE WHEN, and Window Functions against a live relational database in your browser.
3. Modifying Data, Performance & Capstone
0/4 done- 3 min
9. INSERT, UPDATE, DELETE & Safe Transactions
Add new records with INSERT, modify existing data safely with UPDATE and DELETE, and protect multi-step updates using database transactions.
- 3 min
10. Subqueries, CTEs (WITH) & Indexes
Break complex multi-step SQL questions into clean named stages using Common Table Expressions (CTEs) and make slow queries 100x faster with B-tree database indexes.
- 3 min
11. Views & Window Functions Basics
Save reusable queries as SQL Views (CREATE VIEW) and learn how Window Functions (ROW_NUMBER, RANK, running totals) calculate rankings without collapsing rows.
- 3 min
12. Capstone Project: E-Commerce Sales Analytics
Apply everything from the SQL course to design an e-commerce schema and solve 5 real business analytics questions step by step.
Earn Your SQL & Relational Databases Certificate
Take the final assessment once you finish the lessons. Score 70% or higher to unlock a printable completion certificate.
Quick Reference
SQL Queries Quick Reference
Essential SQL syntax cheat sheet covering query execution order, CASE WHEN, COALESCE, JOIN types, aggregations, CTEs, indexes, transactions, and window functions.
What Next?
Explore Career Learning Roadmaps
See how this course connects with Python, SQL, Git, and Web Development paths.