{ }teachix

Practice

SQL Playground

A real PostgreSQL database running in your browser. Write a query and press Run — nothing to install, no account needed.

SELECT * FROM employees;

Sample dataset

  • employees

    50 employees across 5 departments, with a manager hierarchy.

    id, name, department, salary, hire_date, manager_id

  • products

    20 products across 4 categories.

    id, name, category, price, stock

  • orders

    200 orders linking employees to products.

    id, employee_id, product_id, quantity, order_date, status