SQL from zero to advanced: Learn SQL by doing, from your first SELECT to advanced analytics: lessons, quizzes and hands-on labs on a real bank's database.

A complete, practice-first SQL course on MySQL 8 / TiDB. Start from your first SELECT and work up to joins, subqueries, CTEs, window functions, changing data, table design and query performance, answering hundreds of real questions on Aravali Bank's database. Every answer is checked automatically, and every point counts on the course leaderboard.

12 modules · 59 lessons · 618 practice questions · Beginner to advanced · first module free, then $3

What you'll learn

Syllabus

  1. Getting started with SQL — What a database is, how a bank stores its data in tables, and your first queries: choosing columns, removing duplicates, limiting rows and calculating new values.
  2. Filtering rows — Ask for exactly the rows you need with WHERE: comparisons, combining conditions with AND, OR and NOT, lists with IN, ranges with BETWEEN, patterns with LIKE, and the special value NULL.
  3. Sorting and shaping results — Control order and pagination, calculate useful columns and turn business rules into CASE expressions.
  4. Built-in functions — Clean text, round numbers, work with dates and handle missing values without hiding their meaning.
  5. Summarising data — Reduce rows into trustworthy measures using aggregates, GROUP BY, HAVING and conditional aggregation.
  6. Joining tables — Combine related entities while controlling row grain: inner and outer joins, missing matches, self joins and safe joined totals.
  7. Subqueries — Ask a question inside another query: scalar thresholds, membership, existence, correlated comparisons and derived summaries.
  8. Set operations and CTEs — Combine compatible results and structure complex queries with named stages and bounded recursion.
  9. Window functions — Keep detail rows while calculating partitions, ranks, running measures, comparisons and per-group leaders.
  10. Changing data safely — Use a private resettable database to insert, update and delete rows, and reason accurately about atomic changes and transactions.
  11. Designing tables — Choose types and keys, enforce relationships, evolve schemas, normalise entities and define reusable views in a private database.
  12. Performance and advanced analytics — Read query plans, design indexes, reconcile pivots, choose canonical records, find activity islands and build defensible cohort reports.