« Back to SQL Tutorial
SQL Editor — in-browser SQLite
Loading SQLite engine… | Tip: Ctrl+Enter to run

Sample database — tables and columns

customers(id, name, email, country, active, created_at) products(id, category, name, price, stock) orders(id, customer_id, total, status, created_at) order_items(id, order_id, product_id, quantity, price) employees(id, name, manager_id, salary)
SQL
Result
Press Run » to execute the query.