Sign in

Free SQL practice

Practice SQL.
In your browser. For free.

A free site for practicing SQL. Pick a problem, write a query against real tables, and check it against the expected result — no setup, no paywall.

Today

292. Median Salary by Department using PERCENTILE_CONT

One problem a day. Same for everyone (UTC).

Solve today's problem

Continue

Start a track

Joins, window functions, and more — in a sensible order.

Browse tracks

Interview-style problems

Easy to hard questions covering joins, CTEs, window functions, and aggregations.

Instant feedback

Run your query and see if it matches. Hints are there when you get stuck.

Daily streaks

Solve a few problems a day, keep a freeze for missed days, and climb the leaderboard.

select-all-employees.sql
-- pick a problem and start writing
SELECT *
FROM employees;