All practice tasks

SQL Case

Conversion by user segment

Break post-assignment purchase conversion down by segment and variant.

Schema

sql
CREATE TABLE experiments (id INTEGER PRIMARY KEY, name TEXT NOT NULL, started_at TEXT NOT NULL, ended_at TEXT);
CREATE TABLE experiment_assignments (id INTEGER PRIMARY KEY, experiment_id INTEGER NOT NULL, user_id INTEGER NOT NULL, variant TEXT NOT NULL, assigned_at TEXT NOT NULL, segment TEXT NOT NULL);
CREATE TABLE experiment_events (id INTEGER PRIMARY KEY, user_id INTEGER NOT NULL, event_name TEXT NOT NULL, value REAL, occurred_at TEXT NOT NULL);

What this task practices

Conversion by user segment is a sql case interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as medium difficulty. It focuses on Data Reasoning, Validation, Technical Reasoning. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.

Sign in to startThe workspace and evaluation open after sign in.