Free SQL course for beginners. 15 lessons in simple English with a practice database: joins, grouping, changing data, window functions and interview questions.
Beginner · 15 lessons
Start Here
What Is SQL and What Is a Database? - Learn what a database is, what SQL does, and why almost every company that stores data uses it. Easy words, no code to install yet.
Set Up a Free Practice Database with SQLite - Install free SQLite tools, create the shop database used in every lesson, and run your first query. Copy-and-paste setup script included.
Reading Data
SELECT, FROM and WHERE: Your First Queries - Write your first real queries: choose columns with SELECT, name the table with FROM, and keep only matching rows with WHERE. Includes NULL.
Filter Rows: AND, OR, IN, BETWEEN and LIKE - Combine conditions with AND and OR, use brackets correctly, and write shorter filters with IN, BETWEEN and LIKE. Real examples and common traps.
GROUP BY and HAVING: Summaries for Each Group - Get one summary row for each category, city or customer with GROUP BY, filter groups with HAVING, and understand WHERE versus HAVING.
SQL JOINs: INNER JOIN and LEFT JOIN Explained - Combine tables with INNER JOIN and LEFT JOIN. Find customers with no orders, build order totals across three tables, and avoid common join mistakes.
Subqueries, EXISTS and CTEs: Queries Inside Queries - Use a query inside another query with subqueries, EXISTS and WITH (CTEs). Learn the NOT IN with NULL trap and how to split big queries into readable steps.
Changing Data
INSERT, UPDATE and DELETE: Change Data Safely - Add, change and remove rows with INSERT, UPDATE and DELETE. Learn the safe habits that protect real data: SELECT first, always WHERE, and transactions.
CREATE TABLE, Data Types and Constraints - Design your own tables: data types, PRIMARY KEY, NOT NULL, UNIQUE, DEFAULT, CHECK and FOREIGN KEY, plus ALTER TABLE and DROP TABLE.
SQL Interview Questions and What to Learn Next - Practise the SQL questions that interviewers ask most often, with answers and short explanations, and plan what to learn next after this course.