All practice tasks

SQL Case

Repeated overdue invoices

Find accounts with at least two overdue invoices.

Schema

sql
CREATE TABLE accounts (id INTEGER PRIMARY KEY, name TEXT NOT NULL, segment TEXT NOT NULL, created_at TEXT NOT NULL);
CREATE TABLE subscriptions (id INTEGER PRIMARY KEY, account_id INTEGER NOT NULL, plan TEXT NOT NULL, monthly_price REAL NOT NULL, status TEXT NOT NULL, started_at TEXT NOT NULL, ended_at TEXT);
CREATE TABLE invoices (id INTEGER PRIMARY KEY, account_id INTEGER NOT NULL, amount REAL NOT NULL, status TEXT NOT NULL, due_date TEXT NOT NULL, paid_at TEXT);
CREATE TABLE seat_usage (account_id INTEGER NOT NULL, measured_on TEXT NOT NULL, purchased_seats INTEGER NOT NULL, active_seats INTEGER NOT NULL);

What this task practices

Repeated overdue invoices 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 easy 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.