Learn SQL with results you can see
Write a query and see the answer instantly. Build confidence with interactive exercises, clear examples, and a live results view.
- Master queries, joins, aggregations and more
- Instant feedback on every exercise
- One place for lessons, practice, and progress


Who this is for
Beginners who want to explore at their own pace. Analysts and PMs who need a safe place to test patterns. Developers and students who want a quick scratchpad for ideas.
What you will learn
A structured course with lessons and multiple exercises in every module. Learn by doing and see results right away.
Query essentials
Read data with SELECT and FROM. Choose columns, rename with aliases, and understand tables and
Filter and sort results
Focus on the right rows with WHERE and logical operators, then order results for clear reporting.
Group and summarize
Turn raw data into summaries using COUNT, SUM, AVG, MIN, MAX with GROUP BY and HAVING.
Combine tables with joins
Connect data across tables with INNER and LEFT joins, handle NULLs, and avoid duplicate rows.
Subqueries and set logic
Use IN, EXISTS, NOT EXISTS, and derived tables to break problems into readable steps.
Functions and CASE
Transform text, dates, and numbers with built in functions, and create categories with CASE to express rules.
Distinct values and NULL handling
Remove duplicates with DISTINCT, manage missing values, and write clearer conditions.
Unions and combining result sets
Stack compatible queries with UNION and UNION ALL and keep outputs clean and predictable.
Safe INSERT, UPDATE, and DELETE operations
Insert, update, and delete with simple safeguards and checks so you can modify data confidently.
Works in your browser
No setup and no downloads. Open SQL Campus on any device, run exercises with instant feedback, and track your progress as you advance.

The course in numbers
A quick snapshot of what you get inside the course.
8
modules from query basics to safe data changes
200+
exercises with instant feedback
9
demo datasets that mirror real business data
12-16
hours of guided learning