TutreNews Learn

SQL Fundamentals: Querying Relational Databases

Learn SQL with a realistic shop database: SELECT and WHERE, sorting, aggregate functions, GROUP BY and HAVING, joins, subqueries, and changing data and tables safely. Every query in this course is executed against a real SQLite database to verify the results.

Beginner · 4 units · 10 lessons · 70 exercises · ~1.5 h

What you will learn

  • Retrieve, filter and sort rows with SELECT
  • Summarise data with aggregate functions, GROUP BY and HAVING
  • Combine tables with INNER and LEFT JOIN
  • Use subqueries
  • Create tables with keys and constraints, and insert, update and delete data safely

Prerequisites

  • No prior database knowledge; basic logic (and/or)

Learning path

1 Reading data

  1. SELECT and FROM8 min · 5 exercises
  2. Filtering with WHERE9 min · 5 exercises
  3. Sorting and limiting7 min · 4 exercises
  4. Unit exam5 exercises

2 Summarising data

  1. Aggregate functions8 min · 4 exercises
  2. GROUP BY and HAVING10 min · 4 exercises
  3. Unit exam5 exercises

3 Combining tables

  1. INNER JOIN10 min · 4 exercises
  2. LEFT JOIN and NULL9 min · 4 exercises
  3. Subqueries9 min · 4 exercises
  4. Unit exam5 exercises

4 Changing data and structure

  1. INSERT, UPDATE, DELETE10 min · 4 exercises
  2. Designing tables11 min · 4 exercises
  3. Unit exam5 exercises
  1. Final exam8 exercises

References

Related courses