Launch sale 50% off every pass

See plans

Databases and SQL

Database questions show up in university exams, campus placement rounds and backend interviews, and they reward understanding over memorized definitions. This course explains how a relational database stores, queries and protects data, with the SQL you need to answer interview questions on the spot.

8 lessons97 minUpdated 28 Oct 2026

Start the course

Lessons

  1. Tables, keys and constraints: the relational model

    What a database system adds over files, how relations work and how keys and foreign keys keep data correct.

    10 minFree
  2. Writing SQL: joins, grouping and NULL

    Relational algebra, the order a query is evaluated in, every kind of join, GROUP BY and three-valued logic.

    12 minInterview Prep pass
  3. Subqueries, window functions and interview queries

    Correlated subqueries, EXISTS, recursive CTEs and window functions, applied to the queries SQL rounds ask for.

    13 minInterview Prep pass
  4. ER modeling: from requirements to tables

    Entities, relationships, cardinality, weak entities and inheritance, and the rules for turning a diagram into tables.

    12 minInterview Prep pass
  5. Normalization: functional dependencies and normal forms

    Why redundant tables break, how to find keys with attribute closure, and 1NF through BCNF with lossless decomposition.

    13 minInterview Prep pass
  6. Transactions, ACID and serializable schedules

    What each ACID property prevents, conflict serializability with precedence graphs, recoverable schedules and isolation levels.

    12 minInterview Prep pass
  7. Locking, MVCC and crash recovery

    Two-phase locking and why it works, deadlocks, timestamp and multiversion concurrency control, and write-ahead logging.

    13 minInterview Prep pass
  8. Indexing: B+ trees and hash indexes

    Why page reads dominate cost, clustered and secondary indexes, B+ tree search, splits and merges, and hashing.

    12 minInterview Prep pass

Interview Prep pass · Compare plans

Esc
↑↓Move ↵Open Ctrl↵New tab >Actions ?Shortcuts

Keyboard shortcuts

Anywhere

Open search
CtrlKor /
Show these shortcuts
?
Close a window or menu
Esc

In search

Move through results
↑or ↓
Open the result
↵
Open in a new tab, or a problem on its judge
Ctrl↵
List actions only
>
Remove the filter
⌫

Go to

Learn
GthenL
Practice
GthenP
Assessments
GthenA
System design
GthenS
Companies
GthenC
My profile
GthenM
Today's quest
GthenT
Home
GthenH

Report a bug

Page