Free Resources

Master the SQL Interview

Real frameworks, real interview questions, and the answer structures FAANG and AI-startup data analysts actually need — built for every role and seniority level.

FAANG

Real interview questions and patterns from Meta, Google, Amazon, Apple, and Netflix.

AI Startups

How OpenAI, Anthropic, and growth-stage AI companies actually interview data hires.

By Role

Tailored prep for Analysts, Data Scientists, PMs, and AI Engineers.

SQL Skills

The patterns interviewers test most — windows, CTEs, cohorts, funnels, A/B.

SQL Skills

Window Functions for Data Interviews — 8 Patterns to Know

ROW_NUMBER, RANK, LAG, LEAD, and the four less-obvious patterns that separate good candidates from great ones. Real examples included.

11 min read
SQL Skills

Cohort Retention Queries in 6 Frameworks

The query patterns behind every retention chart you've seen. From classic monthly cohorts to weighted retention and resurrection.

13 min read
SQL Skills

A/B Test Analysis in SQL — What Interviewers Actually Ask

Significance, lift, novelty effects, segmentation. Here's how to write the SQL — and explain the results — without sounding like a stats textbook.

12 min read
SQL Skills

How to Optimize a Slow SQL Query — A Practical Framework

The systematic way to diagnose and fix slow SQL: what work the database is doing that it doesn't need to, and how to explain the fix in a senior interview.

13 min read
SQL Skills

Funnel & Conversion Queries — Real Interview Examples

Walk through three real funnel questions step-by-step, with the SQL each step requires and the business framing that wins.

11 min read
SQL Skills

Marketing Attribution & Campaign Queries — Real Interview Examples

Multi-touch attribution, channel ROI, email engagement, and campaign lift. The five marketing analytics patterns that show up in every senior data interview at a paid-acquisition company.

12 min read
SQL Skills

SaaS Metrics, Unit Economics & LTV — Real Interview Examples

MRR movement, NRR/GRR, churn, payback period, CAC and LTV. The SaaS analytics patterns that come up in every B2B data and finance interview.

13 min read
SQL Skills

How to Debug a SQL Query That Returns the Wrong Results

Your query runs but the numbers are wrong. The 11-step framework for tracing grain changes, duplicate rows, NULL behavior, filter logic, and date boundaries back to the real cause.

13 min read

Strategy

How to think, talk, and present like a senior analyst in the room.

Tools & Prep

Plans, frameworks, and tools to get from rusty to FAANG-ready.

More guides coming weekly.

We're publishing 21 SQL-interview guides across FAANG, AI startups, and every analytical role. Create a free account to get them in your inbox first.

Create free account