Developer tools
SQL Playground: Run SQL Queries Online
Write SQL and run it straight away against sample tables, or create your own. It runs SQLite in your browser, so it is fast, private and free.
- Runs in your browser
- Free, no sign-up
Tables
Loading SQLite…
No tables yet. Create one with CREATE TABLE.
SQL error
No rows.
How to use the SQL Playground: Run SQL Queries Online
-
1
Pick a sample database: an online shop, or a company with employees and departments for interview practice.
-
2
Write a query, or press one of the examples, then press Run (Ctrl + Enter).
-
3
Change the data with INSERT, UPDATE or CREATE TABLE. Reset data puts the sample tables back.
-
4
Copy a result as CSV, or use "Copy link to this result" to share your query.
Frequently asked questions
Which database does it use?
How is it different from MySQL?
Is my SQL or data sent anywhere?
Can it practise interview questions?
What happens if my query never ends?
Embed this tool on your site
Paste this code into your page. It's free, with no sign-up, ads or cookies.
Please keep the "Powered by Dev-Talk" link.
Practise with SQL challenges
- Customers from Sri Lanka
- Out-of-stock products
- The most expensive product
- Count orders by status
- Customers who never ordered
- Customers who ordered more than once
- Total of each order
- Each customer's first order
- Orders per month
- Revenue per category
- The best customer
- Restock empty shelves