The practice problem set

Solve real SQL challenges. Get graded instantly.

Free, in-browser SQL practice on real, cited Egyptian data. Each challenge has a problem statement, the givens, and an expected output — like HackerRank or LeetCode, but every table is real. Write your query, run it, and it's auto-graded instantly. No install, no server, no signup.

Easy History

Loading challenges…

Loading the SQL engine…
Show expected output

Loaded tables — query any of these

Years are signed integers — BCE is negative (e.g. Khufu's reign starts at -2589). This is the same cited data the API serves at /datasets/{name}.

All 123 SQL challenges

Every challenge has its own page, so you can link straight to a technique or find one from search. Grouped by sector, then ordered easy→hard.

Agriculture · 9

Art & Cinema · 5

Business · 3

Defence · 2

Demographics · 11

Economy · 14

Education · 8

History · 48

Industry · 4

Logistics · 1

Science & Space · 4

Sports · 6

Suez Canal · 3

Tourism · 3

Water · 2

Questions

How to practice SQL, answered.

How can I practice SQL for free?

EgyBI is free and needs no signup. Open the Practice page, pick a challenge, write your query in the browser, and it is graded instantly against the expected answer — 123 challenges from beginner to advanced, with nothing to install.

What is the best way to practice SQL with real data?

Solve problems on data that is actually true instead of toy customers-and-orders tables. Every EgyBI challenge runs on real, cited Egyptian data — pharaoh reigns, the Suez Canal, today's food prices — so you practise the technique and learn something real at the same time.

Do I need to install a database or create an account?

No. The SQL engine (SQLite compiled to WebAssembly) runs entirely in your browser, so there is no server, no install and no account. Your solved progress is saved locally; sign in only if you want it synced across devices.

Is this good practice for interviews and data-engineering work?

Yes. The challenges cover the SQL that interviews and real BI and data-engineering work lean on — joins, aggregation, subqueries and CTEs, window functions, and date and text handling — organised from easy to hard so you can build up steadily.

Which SQL topics and difficulty levels are covered?

Eight topics — Basics, Aggregation, Joins, Subqueries & CTEs, Window functions, Dates & time, Text & CASE, and Set operations — across 41 Easy, 53 Medium and 29 Hard challenges, filterable so you can drill a specific skill.

Where to next

Keep building.