Interactive SQL practice

Beginner SQL Challenges

Work through 98 beginner SQL exercises in a structured sequence. Each challenge includes a clear problem, schema context and an interactive query editor.

98 SQL challenges

Open Practice Arena
SELECT
Beginner

Select All Employees

Write a query to select all columns from the employees table. Return columns: id, first_name, last_name, email, department_id, salary, hire_date, manager_id.

WHERE
Beginner

Filter High Earners

Find employees with a salary greater than 80,000 and show id, first_name, last_name, and salary. Return columns: id, first_name, last_name, salary.

GROUP BY
Beginner

Customers per Country

Count customers in each country, sorted by the country name. Return columns: country, customer_count. Order results by: country.

WHERE
Beginner

Pending Order List

List pending orders with their date and total amount. Return columns: id, order_date, total_amount. Order results by: order_date.

WHERE
Beginner

Orders Above 250

List orders whose total is greater than 250. Return columns: id, customer_id, total_amount, status. Order results by: total_amount DESC, id.

WHERE
Beginner

Orders Above 500

List orders whose total is greater than 500. Return columns: id, customer_id, total_amount, status. Order results by: total_amount DESC, id.

Showing the first 60 of 98 challenges in this learning path.

Browse and filter all challenges in the Practice Arena

Level guide

What to expect from beginner SQL exercises

Beginner SQL challenges build reliable foundations with SELECT, filtering, sorting, NULL handling and simple aggregation.

  • Read table schemas and choose the requested columns
  • Translate plain-language conditions into WHERE clauses
  • Check ordering, NULL values and exact output shape