SQL Playground — Practice SQL Queries Online
Exercises
Tables
History
1. Show all students
Easy
2. Students from Bangalore
Easy
3. Employees with salary > 60000
Easy
4. Names starting with 'R'
Easy
5. Students with marks between 75 and 90
Medium
6. Salary bands using CASE WHEN
Medium
7. Employees with missing email
Medium
8. Department-wise average salary
Medium
9. Top 3 highest marks
Easy
10. 2nd highest salary
Hard
11. UPDATE: 15% salary hike (Engineering)
Medium
12. DELETE: Remove old orders
Medium
13. INSERT new student
Easy
14. Transaction: Bank transfer
Hard
SQL Playground
Load Sample Data
Reset DB
▶ Run SQL
1
2
3
4
-- Click "Load Sample Data" to get started!
-- Then try the exercises on the left.
SELECT
1
+
1
AS
result
;
SQL engine ready — load sample data to begin