Skip to content
SQL
Case
Beginner
Intermediate
Advanced
About
Solve Case 001 →
Home
/ Intermediate
Intermediate
Intermediate track
Window functions, CTEs, self-joins, and set operations. 15 cases.
Window Functions
CASE 021
The Leaderboard
customers
orders
payments
✓
CASE 022
The Latest Order
orders
✓
CASE 023
Before and After
orders
✓
CASE 024
The Running Total
customers
orders
payments
✓
CASE 025
The Tie Breaker
customers
orders
✓
Self-Joins & CTEs
CASE 026
Bought Together
order_items
products
✓
CASE 027
Bought Both
customers
orders
order_items
✓
CASE 028
The High-Value Customers
customers
orders
payments
✓
CASE 029
The Second Order
orders
✓
CASE 030
Signup Cohorts
customers
✓
CASE 031
Did They Come Back?
customers
orders
✓
Business Calculations
CASE 032
Paid vs. Unpaid
customers
orders
payments
✓
CASE 033
Profit Margin
products
inventory
✓
CASE 034
At-Risk Stock
products
inventory
order_items
✓
CASE 035
The Churn Signal
customers
orders
✓
Looking for a different level?
Beginner
Advanced