Free SQL practice for aspiring data analysts

Practice SQL on real business questions.

8 hands-on challenges on a real sales table. Write the query, run it right in your browser, and see if your numbers match. No sign-up, no install.

  • 8 challenges
  • About 20 minutes
  • Runs in your browser
  • 100% free
0/8 solved

Your table: sales

12 orders from NovaRetail, a home appliance retailer selling in the USA, Canada and Mexico. Same data as the Workyp Data Analyst track.

id INTEGERproduct TEXTcountry TEXTamount REALsale_date TEXT
Challenge 1 of 8SELECTEasy

Meet the sales table

Your manager wants a quick look at what we sell. List every sale with its product and its amount.

Expected output

productamount
Vacuum X349
Vacuum X349
Coffee Maker Pro129.5
Coffee Maker Pro129.5
Stand Mixer599

+ 7 more rows

Challenge 2 of 8WHEREEasy

Zoom in on Canada

The Canada sales lead is on the phone. Pull every sale shipped to Canada, with its id, product and amount.

Expected output

idproductamount
2Vacuum X349
5Stand Mixer599
9Stand Mixer599
10Coffee Maker Pro129.5
Challenge 3 of 8ORDER BY + LIMITEasy

The 3 latest sales

Before Monday's meeting, show the 3 most recent sales: id, product and sale_date, newest first.

Expected output, in this order

idproductsale_date
12Vacuum X2026-03-21
11Toaster S2026-03-14
10Coffee Maker Pro2026-03-09

Workyp Training · Data Analyst

You're writing real queries. Now do the real job.

In the free Data Analyst track, you join NovaRetail's data team: fix a broken Finance dashboard, cut through vague requests and present to the execs. Real missions, a mentor, instant feedback.

Free account · No credit card

Challenge 4 of 8COUNT + SUMMedium

How big is the business?

The CFO wants two numbers in a single row: how many sales we made (orders) and our total revenue (revenue).

Expected output

ordersrevenue
123681.3
Challenge 5 of 8GROUP BYMedium

Revenue by country

The Finance dashboard needs one line per country, with that country's total revenue.

Expected output

countryrevenue
Canada1676.5
Mexico528.4
USA1476.4
Challenge 6 of 8HAVINGMedium

Products above $1,000

Which products brought in more than $1,000 in total? Show each product with its revenue.

Expected output

productrevenue
Stand Mixer1797
Vacuum X1396
Challenge 7 of 8Date filterHard

March revenue

How much did we sell in March 2026? Return a single number.

Expected output

revenue
1177.3
Challenge 8 of 8CTEHard

Beat the average

Which countries generate more revenue than the average country? Show each one with its revenue.

Expected output

countryrevenue
Canada1676.5
USA1476.4

Workyp Training · Data Analyst

SQL is step one. The job is the rest.

The Data Analyst track on Workyp Training puts your SQL to work: tickets, stakeholders, dashboards, and a certificate you can add to LinkedIn.

Free account · No credit card

Questions

Do I need to install anything?

No. Every query runs right in your browser on SQLite. Nothing to install, and your queries never leave your device.

Is it really free?

Yes. The 8 challenges need no account. The full Data Analyst track on Workyp Training is free too: you just create a free account to save your progress.

Which SQL dialect is this?

SQLite. What you practice here (SELECT, WHERE, ORDER BY, GROUP BY, HAVING, CTEs) carries over to PostgreSQL, MySQL, BigQuery and Snowflake.

Where is my progress saved?

In your browser. Come back on the same device and your solved challenges and drafts are still there.

Cookies & Privacy

We use essential cookies for authentication and privacy-friendly analytics (no tracking cookies). Learn more