tezvyn:

Build a SQL query for a multi-step conversion funnel

Source: quadratichq.comintermediate

Tests your ability to translate a product question into robust SQL. A great answer uses CTEs or left joins to count users at each step, defining the attribution model (e.g., first-touch) and time windows. A red flag is a naive query that double-counts users.

This tests translating a business need into a robust SQL query, considering data modeling and edge cases like attribution. A strong answer outlines a multi-step SQL approach: first, a CTE to find the first time a user completes each event; second, a series of left joins or conditional aggregations to count users who reached each sequential step; finally, calculating step-over-step conversion to find the largest drop. A red flag is simply counting users per event, which double-counts and misrepresents the funnel.

Read the original → quadratichq.com

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Build a SQL query for a multi-step conversion funnel · Tezvyn