// run live SELECT queries · Ctrl+Enter to execute
The SQLMentor editor runs queries entirely in your browser using sql.js — SQLite compiled to WebAssembly. There's no server round-trip, no signup, and no data leaves your machine. It's the fastest way to practise SQL on a real schema without installing Oracle, PostgreSQL, MySQL or SQL Server locally.
The editor simulates four dialects: Oracle SQL,
MySQL, PostgreSQL, and
Microsoft SQL Server (T-SQL). Dialect-specific syntax
(like Oracle's ROWNUM, PostgreSQL's :: casts,
or T-SQL's TOP n) is translated to SQLite-compatible SQL on
the fly. All four share a common Oracle HR schema so you can
compare dialects on the same data.
Eleven tables ship pre-loaded: employees,
departments, jobs, job_history,
locations, countries, regions,
dependents, salaries, projects,
and project_assignments. The schema is rich enough to
practise joins, subqueries, CTEs, window functions, and aggregation
without contrived examples.