YOUR FIRST QUERY

Pick a question to answer.

Each free exercise runs a real query on sample company data. No account, card or installation needed.

Beginner

Call list of business customers

The B2B sales team wants to phone every business customer this week. Return the name and email (in that order) of every customer whose segment is 'business'.

2 min · FreeBegin
From the course “SQL basics: ask your first questions”
Beginner

How big is our customer base?

For the investor update, the founder wants two numbers in one row: how many customers we have, and in how many different countries they live. Return the customer count first, then the number of distinct countries.

2 min · FreeBegin
From the course “Totals, averages and groups”
Intermediate

Who still owes us money?

Finance wants to chase customers with unpaid invoices before month-end. An invoice is unpaid when its status is 'open'; 'void' invoices were cancelled and nobody owes them. Return one row per open invoice with three columns: the company name, the invoice_date and the amount. Any row order is fine.

3 min · FreeBegin
From the course “Business metrics with SQL”
Beginner

Recent paid orders

Return id, customer_id and order_date for paid orders placed on or after 1 September 2026, sorted newest order_date first and id ascending.

5 min · FreeBegin
From the course “Junior engineer interview: query the application data”
Your answers are checked against the correct result. Create an account afterwards to save progress and unlock every course for seven days.