SQL Practice Environment
Practice SQL queries with sample databases in your browser
Database Schema
employees
id (INTEGER)
name (TEXT)
department (TEXT)
salary (REAL)
hire_date (TEXT)
products
id (INTEGER)
name (TEXT)
category (TEXT)
price (REAL)
stock (INTEGER)
customers
id (INTEGER)
name (TEXT)
email (TEXT)
city (TEXT)
orders
id (INTEGER)
customer_id (INTEGER)
product_id (INTEGER)
quantity (INTEGER)
order_date (TEXT)
Sample Queries
All Employees
High Earners
Avg Salary by Dept
Above Average Salary
Orders with Details
Products by Category
SQL Query Editor
SELECT * FROM employees LIMIT 10;
Execute Query
Clear
Query Results
Error