SQL fundamentals learning path

Backend engineers preparing for SQL interview questions on joins, grouping, indexes, views and deadlocks.

20 questions4 levels7 must‑knowFree, no account

Your progress

L1 · 0 of 6L2 · 0 of 7L3 · 0 of 6L4 · 0 of 1

Level 1 · 6 questions. Begin with what gets asked in the first ten minutes. Levels 2 to 4 build on it.

Start with Level 1
Level 1First ten minutesTwo-sentence answers to what gets asked first.6 questions · 5 topics

Aggregation semantics

  1. 1.1How do GROUP BY and HAVING differ, and where does WHERE fit?Must‑know2 min

Cartesian products

  1. 2.1How many rows does a comma join return, and what happens when one table is empty?2 min

How indexes find rows

  1. 3.1What happens when you search for a row without an index?Must‑know1 min
  2. 3.2What is a clustered index?Must‑know1 min

Lookups and covering indexes

  1. 4.1Why not add an index for every query?Must‑know1 min

Self-joins

  1. 5.1How do you find employees who earn more than their managers?2 min
Level 2Daily jobWhat you use at work every week.7 questions · 4 topics

How indexes find rows

  1. 1.1What is stored in a nonclustered index?1 min

Lookups and covering indexes

  1. 2.1What does INCLUDE do, and what makes an index covering?1 min

Stored procedures and triggers

  1. 3.1What are stored procedures and triggers, and when do you use each?2 min

Locking and deadlocks

  1. 4.1What is the difference between blocking and a deadlock?Must‑know2 min
  2. 4.2How does SQL Server detect and resolve a deadlock?Must‑know2 min
  3. 4.3How do you minimize deadlocks in SQL Server?2 min
  4. 4.4What should your application do when it receives error 1205?Must‑know2 min
Level 3SeniorProduction trade-offs and failure modes.6 questions · 4 topics
Level 4InternalsHow it works underneath, and at scale.1 questions · 1 topics

How indexes find rows

  1. 1.1Why does a B+ tree lookup on a large table read only a few pages?1 min