DATA DETECTIVE CLUB
Window Functions -
Top N salary per department
Running total of daily revenue
Rank customers by lifetime
spend
Find longest gap between
orders
Previous vs current value
comparison
NEXT
DATA DETECTIVE CLUB
Data Cleaning -
Remove duplicates keeping
latest record
Find duplicate emails
Detect missing dates
Replace NULL with meaningful
values
Identify inconsistent records
NEXT
DATA DETECTIVE CLUB
Business Aggregation -
Revenue by month & region
Conditional aggregation
(multiple KPIs)
Average order value per
customer
Customers with zero
purchases
Top products by category
NEXT
DATA DETECTIVE CLUB
Joins + Subqueries -
Customers who never ordered
Products never sold
Self join (manager–employee)
EXISTS vs IN scenario
Anti join pattern
NEXT
DATA DETECTIVE CLUB
Advanced Analytics -
Cohort analysis (monthly
retention)
Funnel analysis
Sessionization problem
Rolling 7-day average
Churn detection logic
NEXT