Free
₹0
Start here. No card needed.
- 19 lessons: Modules 0 and 1, and the first lesson of every module
- Daily practice question, every day
- Streaks and saved progress
- The full SQL playground
A SQL course · PostgreSQL · runs in your browser
You’ve just joined ShopKart, an Indian online store, as its first data analyst. Every lesson starts with a message from someone on the team, and ends with you answering it on real data.
No install and no sign-up to start. The query on this page runs in real Postgres — edit it and press Run.
Which cities bring in the most revenue? Top five, please.
SELECT c.city, COUNT(*) AS orders,
SUM(p.amount) AS revenue
FROM orders o
JOIN customers c ON c.customer_id = o.customer_id
JOIN payments p ON p.order_id = o.order_id
WHERE p.status = 'success'
GROUP BY c.city
ORDER BY revenue DESC
LIMIT 5;| city | orders | revenue |
|---|---|---|
| Mumbai | 342 | 2331136.00 |
| Delhi | 375 | 2228391.00 |
| Pune | 302 | 1875883.00 |
| Bengaluru | 317 | 1714172.00 |
| Chennai | 253 | 1589936.00 |
Nobody learns LEFT JOIN for fun. You learn it because Meera needs a list by lunchtime. This is lesson 5.4, start to finish.
Which customers signed up but never ordered? I want to send them a coupon.
Someone on the team needs an answer. That is the whole reason for the lesson.
1:44A short, hand-drawn explanation that follows a few real rows through the query.
SELECT c.customer_id, c.first_name, c.city FROM customers c LEFT JOIN orders o ON o.customer_id = c.customer_id WHERE o.order_id IS NULL;
The lesson’s query, ready to run and change. It is a real database, so you can break it.
COUNT(*) gives 1 for customers with zero orders. Use COUNT(o.order_id).
Every lesson names the one mistake nearly everyone makes with that topic.
“Which cities are our customers in? Just the list, no repeats. And the 10 newest signups.”
Asks about customers, signups, retention, funnels.
“Can you send me everything we sell? Just the full product list.”
Asks about orders, deliveries, stock, returns.
“What's our margin on each product — in rupees and in percent?”
Asks about revenue, margins, payments, refunds.
“Why is 10 less than 9 in this report?”
Asks about schema design, performance, slow queries.
ShopKart’s data covers two and a half years of orders, 1 January 2024 to 30 June 2026. You will know it the way you would know a real company’s database.
It is deliberately imperfect: missing phone numbers, duplicate emails that differ by a capital letter, and a city spelt both Bangalore and Bengaluru. Cleaning that up is part of the job, and part of the course.
Open the playgroundcustomers608 rowsEveryone who signed up. A few duplicate emails and two spellings of Bengaluru — on purpose.categories25 rowsA three-level tree: Electronics › Mobiles › Smartphones.products136 rowsWhat ShopKart sells, with price, cost price and stock.orders3,319 rowsOne row per order: who, when, status, where it shipped.order_items6,364 rowsThe lines of each order — the bridge between orders and products.payments3,397 rowsPayment attempts: method, amount, success / failed / refunded.reviews1,724 rowsStar ratings and review text for products.events29,891 rowsWebsite activity: page views, product views, carts, checkouts, purchases.SELECT to a mock interview.13 modules. Each one ends with something you can actually do at work.
Understand what a database is and why SQL matters, and run your first query within ten minutes.
Read any single table: choose columns, calculate new ones, sort, and limit.
Return exactly the rows you want, and understand how NULL breaks intuition.
Transform values: clean text, round numbers, work with dates, and write if/else logic.
Summarise data: totals, averages, counts per group. This is the first module where SQL feels like analysis.
Combine tables confidently, and know exactly how many rows a join will return before running it.
Break hard questions into steps, using queries inside queries and readable WITH blocks.
Stack and compare query results vertically.
Calculate across related rows without collapsing them: rankings, running totals, and comparisons with the previous row.
Go from reading data to designing and changing it: tables, constraints, inserts, updates, and good schema design.
Understand what the database does with your query, make slow queries fast, and keep data consistent when things fail.
Combine everything into the analyses companies actually pay for: growth, funnels, cohorts, segmentation.
Recognise the classic SQL interview patterns instantly and solve them out loud under time pressure.
1:38Lesson 1.1 · First Queries“Can you send me everything we sell? Just the full product list.”
3:41Lesson 5.3 · Joins“For each order, I need the customer's name next to it.”
1:31Lesson 8.3 · Window Functions“Can you rank all our products by price? Hmm — what happens with ties?”
Every day the team sends one new question, at your level. You answer it on the real database and it is checked against the real result, not a multiple-choice guess.
Solve it, or finish a lesson, and the day counts towards your streak.
Try today’s questionWhich products cost more than ₹10,000? Most expensive first.
5 days and counting
The first two modules, the first lesson of every other module and daily practice cost nothing.
₹0
Start here. No card needed.
best value — save 69%
₹2,999/ year
Works out to ₹250 a month.
₹799/ month
Cancel whenever you like.
Payments are handled by Dodo Payments. Taxes are added at checkout where they apply. You can cancel from your account page at any time.