CheatsheetKit

Role Pack · Mid

SQL Mastery Pack

Advanced SQL: window functions, CTEs, query tuning, transactions and modelling.

SQL beyond the basics: advanced queries, execution plans, transactions and schema design.

Questions
360
Topics
20
Pages
237

Get the SQL Mastery Pack — $9 One-off. Delivered as a PDF by email the moment payment clears.

Prices shown are a USD base. Your local-market price is calculated at checkout in your own currency, plus any local sales tax.

What is inside

20 chapters, in the order the interviews tend to ask them:

  1. Relational modelling, entities and cardinality
  2. Primary keys, foreign keys and constraints
  3. Normalisation and deliberate denormalisation
  4. Join types, join order and outer join pitfalls
  5. Anti joins, existence checks and set operations
  6. Subqueries, derived tables and common table expressions
  7. Window functions, frames and ranking
  8. Aggregation, grouping and conditional summaries
  9. Recursive queries and hierarchical data
  10. Index types, column order and the cost of writes
  11. Reading execution plans and estimating cost
  12. Transaction boundaries, commit and rollback
  13. Isolation levels and the anomalies they permit
  14. Row locks, table locks and lock granularity
  15. Deadlocks, detection and safe retries
  16. Pagination, keyset paging and cursors
  17. JSON columns, functions and the modelling trade-off
  18. Schema migration, rollouts and reversibility
  19. Three valued logic, nulls and SQL comparison traps
  20. Views, materialised views and derived data

How the answers are built

Each chapter opens with the checklist the question is really testing. A few from this pack:

Questions this pack covers

  1. Walk me through how you would turn a stated business requirement into a set of relations.
  2. What does a cardinality ratio actually tell you about how to lay out tables?
  3. Why is a surrogate primary key safer than a natural one?
  4. What does a random uuid key actually cost on a large table?
  5. What does each normal form actually prevent?
  6. Why does a transitive dependency break third normal form?
  7. What is the difference between an inner and a left outer join?
  8. Why does a full outer join rarely turn up in application queries?

Each one is answered in full in the pack, with the reasoning written out rather than a bullet list.

Related packs

About this pack

How many questions?
360, spread across 20 topics, written out in full across 237 pages.
Do the answers just list keywords?
No. Each answer is written as prose, because that is what you have to reproduce when someone asks you the question.
How do I get it?
Pay once and the PDF arrives by email immediately, with a signed download link.
Can I get it refunded?
Yes, if it is not what you expected. See the refund policy.