TechCart ยท E-Commerce ยท 15 Tasks ยท ~90 min
You'll need a free account to save your progress.
You've just been hired as a Junior Data Analyst at TechCart, a fictional Indian e-commerce company. Customers visit the platform, place orders, make payments, and buy products across dozens of categories.
The management team relies on the Data Analytics department to guide every major business decision โ and now that includes you.
Your job is to analyze TechCart's sales data and answer real business questions using SQL. You won't be learning new concepts โ you'll be applying everything you already know to solve problems that matter.
This project is your bridge from learner to practitioner.
โGood morning! We have our weekly management meeting in one hour. I need several reports about our sales, customers, products, and payments. Can you prepare them?โ
It's Monday morning. Your manager needs answers โ fast. This project walks you through 15 real analytical tasks, each representing a request that Data Analysts receive in their daily work. You have one hour. Let's get to it.
Each request below comes from a TechCart department. Hints and the checked answer open inside the project.
The CEO wants to know: "How much revenue has our company generated from successful, delivered orders?" Base your answer on order line items (order_items), not the orders.total column โ Finance reports revenue before customer discounts, and orders.total is the amount after the discount. Only include orders with status 'delivered'.
The Finance department needs a monthly revenue breakdown (from delivered orders) to track performance over time. Return each month and its revenue, sorted from oldest to newest.
The Marketing team wants to reward their highest-spending customers. Return the top 10 customers (by name) and how much they spent on delivered orders, highest spender first.
The Product team wants to identify their best performers by units sold (delivered orders only). Return the top 10 products and units sold, highest first.
Management wants to know: "On average, how much does a customer spend per delivered order?" Base this on order line items.
The CRM team defines a repeat customer as anyone who has placed more than one delivered order. How many repeat customers does TechCart have?
The CEO wants the total value every customer has brought to the business (lifetime value = total spend across all their delivered orders). Return every customer with their lifetime value, highest first.
Which product categories generate the highest revenue from delivered orders? This helps the business decide where to invest in inventory and marketing.
The Finance team needs to investigate failed transactions. List every failed payment with its order id, customer name, amount, and payment date.
The CEO wants to monitor revenue day by day. Return delivered-order revenue for every date, sorted chronologically.
Find the single product that has sold the most units overall (delivered orders only).
Management wants to understand how customers prefer to pay. Break down revenue from successful payments by payment method, highest revenue first.
Marketing wants to understand buying behavior patterns. For each customer, count how many successful payments they have made. (Optional bonus, not required to pass: also show their total amount paid โ average days between purchases is a nice-to-have, not graded.)
Find the single highest-value delivered order ever placed at TechCart (by total line-item value), and who placed it.
Consolidate everything you've found into a single executive dashboard. No new SQL query is required here โ once all 12 KPIs below are unlocked by completing their source tasks, review the dashboard and submit it to close out the project.
TechCart is a fictional company. Its e-commerce database (ecommerce) is the same SQLite practice database used by the Playground, the challenges and the lessons.
Each task builds on a topic from the lessons. If one feels unfamiliar, review it and come back, or warm up in the SQL Playground and the practice challenges.