Start free

DatabasesBeginner → AdvancedBeginner stage36 hoursFree

SQL with MySQL

SQL from SELECT to window functions and query tuning, on MySQL 8.

Start this course freeLabs run in your browser. No installs.

What you will be able to do

  • Query, filter and aggregate
  • Join many tables correctly
  • Use CTEs and window functions
  • Design schemas and tune queries

Tools

  • MySQL 8
  • MySQL Workbench
  • DBeaver

Syllabus — 7 modules

  1. Relational basics

    A relational database stores tables linked by keys. SQL is declarative: you say what you want, the engine decides how.

    Tables, rows, columns · Primary and foreign keys · Data types in MySQL · Installing MySQL and Workbench · Running your first query

  2. Querying

    SELECT, WHERE, ORDER BY and LIMIT answer most simple questions. Know logical execution order: FROM, WHERE, GROUP BY, HAVING, SELECT, ORDER BY, LIMIT.

    SELECT and aliases · WHERE, AND, OR, IN, BETWEEN, LIKE · NULL and IS NULL · ORDER BY, LIMIT, OFFSET · DISTINCT · CASE expressions

  3. Aggregation

    GROUP BY collapses rows into groups; HAVING filters groups after aggregation.

    COUNT, SUM, AVG, MIN, MAX · GROUP BY · HAVING vs WHERE · COUNT(DISTINCT) · ROLLUP

  4. Joins

    Joins combine tables. Choosing the wrong join silently drops or duplicates rows — always check row counts.

    INNER, LEFT, RIGHT joins · Full outer join emulation in MySQL · Self joins · Many-to-many and bridge tables · Fan-out and duplicate inflation · Anti-joins with NOT EXISTS

  5. Subqueries, CTEs and windows

    CTEs make complex queries readable; window functions compute running totals, ranks and period comparisons without collapsing rows.

    Scalar, IN and EXISTS subqueries · WITH and recursive CTEs · ROW_NUMBER, RANK, DENSE_RANK · LAG and LEAD · Running totals with SUM() OVER · Frames: ROWS BETWEEN

  6. Writing data and design

    DML changes data; DDL defines it. Normalise to avoid anomalies, then denormalise deliberately for analytics.

    INSERT, UPDATE, DELETE, UPSERT (ON DUPLICATE KEY) · Transactions and ACID · CREATE, ALTER, constraints · Normal forms 1NF–3NF · ER diagrams · Views

  7. Performance

    Indexes speed reads and slow writes. EXPLAIN shows how MySQL executes a query.

    B-tree indexes · Composite index column order · Covering indexes · EXPLAIN and EXPLAIN ANALYZE · Avoiding functions on indexed columns · Stored procedures and functions

How you are assessed

Every module ends with a check question. The final exam has 15 theory questions and 3 hands-on tasks solved in the tool this course teaches; pass at 70% for a certificate anyone can verify online.

Where it sits in the Databases track

  1. SQL Fundamentals (Any Database) Beginner
  2. SQL with MySQL (this course) Beginner → Advanced
  3. MongoDB Beginner → Advanced
  4. GraphQL for Data Intermediate
  5. Oracle SQL & PL/SQL Intermediate
  6. Graph Databases with Neo4j Intermediate
  7. Microsoft SQL Server & T-SQL Intermediate → Advanced
  8. PostgreSQL Intermediate → Advanced
  9. NoSQL: Redis, Cassandra, DynamoDB & Elasticsearch Intermediate → Advanced
  10. Database Management & Administration Advanced

Part of these career paths

Start learning

Questions and answers

How long does the SQL with MySQL course take?
About 36 hours across 7 modules, at your own pace. At five hours a week most learners finish in 8 weeks.
Is SQL with MySQL free?
Yes. Every lesson, lab and the final exam are free; you only need a free account.
Do I get a certificate for SQL with MySQL?
Yes. Pass the final exam (15 theory questions and 3 hands-on tasks in 40 minutes, pass mark 70%) and you get a certificate with an ID that anyone can verify online.
What should I know before starting SQL with MySQL?
It follows SQL Fundamentals (Any Database) in the Databases track. If Databases is new to you, start with SQL Fundamentals (Any Database).
What will I be able to do after SQL with MySQL?
Query, filter and aggregate; Join many tables correctly; Use CTEs and window functions.