Technique
7 posts on the SQL techniques analysts actually use on the job — window functions, CASE WHEN, pivots, and more.
- Technique11 min read
Cohort Retention in SQL: The Query Every Analyst Eventually Owns
The retention triangle is the single most-requested chart in product analytics. Here’s how it’s built — cohort anchor, grid query, NULL traps, and how to read what stakeholders actually ask for.
Read the post - Technique10 min read
CASE WHEN for Business Logic: The Pattern Analysts Underrate
The one SQL construct that turns vague stakeholder asks into queryable rules — with the NULL traps and pivot patterns that decide senior-analyst code from junior-analyst code.
Read the post - Technique12 min read
The Seven SQL Patterns That Cover 80% of Data Analyst Interviews
Every FAANG SQL screen draws from the same seven patterns. This is the primer — the verbatim questions, the canonical solutions, and the trap variants that separate strong candidates.
Read the post - Technique9 min read
SQL Window Functions in Real Analyst Work
Running totals, top-N per group, month-over-month growth — the three window-function patterns that cover 90% of analyst work, with exercises.
Read the post - Technique9 min read
CTEs and Recursive Queries for Analysts
Why `WITH` changed how analysts write SQL, when to chain vs nest, and the one recursive pattern that every analyst will eventually need (org charts, category trees, session chains).
Read the post - Technique9 min read
SQL Performance for Analysts (Without Becoming a DBA)
The five query-performance moves that matter for analysts — indexes, EXPLAIN, materialization, and when a "slow" query is actually a grain bug in disguise.
Read the post - Technique9 min read
SQL Joins for Analysts: A Practical Guide (with the Mistakes)
The five joins, when each is the right answer, and the three join mistakes that silently break production dashboards.
Read the post
Browse other topics