Interview's MateSQL Learning
Interview's Mate

SQL Learning

Foundations → production SQL

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home

LEARNING

SQL Learning

Build strong query fundamentals, analytical SQL, data modeling, performance, and production skills through visual, interview-focused lessons.

Structured learning path

Build SQL confidence from foundations to production

160 visual lessons covering query design, joins, CTEs, windows, indexing, and production operations.

Open SQL practice
Start hereINNER JOINCTEsEXPLAIN ANALYZE

Showing 160 of 160 topics

0 / 160 completed

Learning modules

Open one module at a time to keep your path focused.

  • What is a Database? (DBMS vs RDBMS)

    Not started

    Clarify databases, DBMS vs RDBMS, and why relational systems dominate transactional apps.

    DatabaseDBMS vs RDBMS+1 more
    Not started
    Beginner
    Start
  • Relational Model: Tables, Rows, Columns & Schemas

    Not started

    Map entities to tables, attributes to columns, and organize objects under schemas.

    TablesRows & Columns+1 more
    Not started
    Beginner
    Start
  • SQL Dialects Overview (PostgreSQL, MySQL, SQL Server, SQLite, Oracle)

    Not started

    Compare major SQL dialects, ANSI core, and where syntax and features diverge.

    ANSI SQLDialect Differences+1 more
    Not started
    Beginner
    Start
  • Installing PostgreSQL / MySQL & Database Clients (DBeaver, pgAdmin)

    Not started

    Install a local engine, connect with a GUI client, and run your first query safely.

    Local InstallConnection Strings+1 more
    Not started
    Beginner
    Start
  • SQL Command Categories (DDL, DML, DQL, DCL, TCL)

    Not started

    Group SQL statements into DDL, DML, DQL, DCL, and TCL with clear mental models.

    DDLDML / DQL+1 more
    Not started
    Beginner
    Start
  • Core Data Types (Numeric, String/Text, Boolean, Date/Time, UUID)

    Not started

    Pick the right column types for numbers, text, booleans, timestamps, and UUIDs.

    Numeric TypesText Types+1 more
    Not started
    Beginner
    Start
  • Creating & Dropping Databases and Tables (CREATE, DROP, ALTER)

    Not started

    Create, alter, and drop databases and tables without locking yourself into bad schemas.

    CREATE TABLEALTER TABLE+1 more
    Not started
    Beginner
    Start
  • Primary Keys & Auto-Increment / Serial / Identity Columns

    Not started

    Choose primary keys and generate surrogate IDs with SERIAL, IDENTITY, or UUID.

    Primary KeySERIAL / IDENTITY+1 more
    Not started
    Beginner
    Start
  • Foreign Keys & Referential Integrity (ON DELETE CASCADE, SET NULL)

    Not started

    Enforce parent-child links and choose delete/update actions that keep data consistent.

    Foreign KeysON DELETE+1 more
    Not started
    Intermediate
    Start
  • Data Constraints (NOT NULL, UNIQUE, CHECK, DEFAULT)

    Not started

    Protect data quality at the column and table level with declarative constraints.

    NOT NULLUNIQUE / CHECK+1 more
    Not started
    Beginner
    Start
  • Inserting Records (INSERT INTO, Single vs Multi-Row Inserts)

    Not started

    Insert one or many rows efficiently and return generated keys when needed.

    INSERT INTOMulti-Row Insert+1 more
    Not started
    Beginner
    Start
  • Updating Records Safely (UPDATE with WHERE)

    Not started

    Update targeted rows safely, preview impact, and avoid the missing-WHERE disaster.

    UPDATEWHERE Safety+1 more
    Not started
    Beginner
    Start
  • Deleting Data (DELETE vs TRUNCATE vs DROP)

    Not started

    Choose DELETE, TRUNCATE, or DROP based on recovery needs, speed, and schema impact.

    DELETETRUNCATE+1 more
    Not started
    Beginner
    Start
  • Basic Retrieval (SELECT, Column Aliases AS, DISTINCT)

    Not started

    Project columns, alias results, and remove duplicates with DISTINCT thoughtfully.

    SELECTAS Aliases+1 more
    Not started
    Beginner
    Start
  • Filtering Rows (WHERE, Comparison Operators =, !=, <, >)

    Not started

    Filter result sets with WHERE and comparison operators before aggregation or joins.

    WHEREComparisons+1 more
    Not started
    Beginner
    Start
  • Logical & Range Operators (AND, OR, NOT, BETWEEN, IN)

    Not started

    Combine predicates with AND/OR/NOT and express ranges with BETWEEN and IN lists.

    AND / OR / NOTBETWEEN+1 more
    Not started
    Beginner
    Start
  • Pattern Matching (LIKE, ILIKE, Wildcards % and _)

    Not started

    Search text with LIKE/ILIKE wildcards and know when indexes still help.

    LIKEILIKE+1 more
    Not started
    Beginner
    Start
  • Handling NULL Values (IS NULL, IS NOT NULL, Three-Valued Logic)

    Not started

    Reason about NULL with three-valued logic and avoid = NULL mistakes.

    IS NULLThree-Valued Logic+1 more
    Not started
    Intermediate
    Start
  • Sorting & Limiting Results (ORDER BY, ASC/DESC, LIMIT, OFFSET)

    Not started

    Sort result sets and page with LIMIT/OFFSET while knowing OFFSET pitfalls.

    ORDER BYLIMIT+1 more
    Not started
    Beginner
    Start
  • SQL Execution Order vs Logical Writing Order

    Not started

    Contrast how you write SELECT vs how the engine logically processes clauses.

    Logical OrderFROM → WHERE → GROUP+1 more
    Not started
    Intermediate
    Start