SQL Playground

A blank SQL editor connected to a fresh copy of the demo shop database. Write any queries — including CREATE, INSERT and DELETE — and press Run (or Ctrl+Enter). Every run starts from the original data.

Try it yourself
Result

Schema reference

TableColumns
customersid, name, email, city, country, signup_date
productsid, name, category, price, stock
ordersid, customer_id → customers, order_date, status
order_itemsorder_id → orders, product_id → products, quantity, unit_price
employeesid, first_name, last_name, email, department_id → departments, job_title, salary, hire_date, manager_id → employees
departmentsid, name, location

See The Demo Database for the full data and how the tables relate.

Ideas to try

  • Which city has the most customers?
  • What's the average order value per month?
  • Which employees earn more than their department's average?
  • Create a reviews table, add a few reviews and join them to products.