Rahmi Remote/Tasks
TASK · intermediate · 2-3 hours
Write a portfolio query on a mini e-commerce dataset
From 2 mini tables (customers, orders) answer 3 revenue questions with clean commented queries
01
Why it matters
Data recruiters skip long explanations. They read your query for 30 seconds and know your level.
02
Steps
- Create customers (id, name, city, signup_date) and orders (id, customer_id, amount, order_date) with 20 rows each
- Query 1: revenue per city this month (JOIN plus GROUP BY plus SUM)
- Query 2: top 5 customers plus average order (ORDER BY plus LIMIT plus AVG)
- Query 3: customers with no orders in 60 days (LEFT JOIN plus WHERE NULL)
- Comment each block: what is computed and why
03
Expected output
.sql file with 3 commented queries plus results plus 3 insight lines
04
Checklist
- Queries run error-free
- Comments explain why, not what
- NULLs handled
- Insights cite specific numbers
05
Evidence
SQL file plus result screenshots
06
Self review
Could a junior follow your logic from comments alone?
TOOLS USED
STUCK OR UNSURE?
bring your learning to a 1-on-1All materials are free to study. If positioning, portfolio, or apply strategy stalls, we dissect it together.