Practice · History · Hard

Monuments and their builder’s dynasty

For each monument, show the monument name, who built it, and that builder’s dynasty — by joining monuments to pharaohs. Order by the monument’s construction_start (oldest first).

Runs in your browser. No signup needed.

What you are given

monuments(name, builder, location, construction_start). pharaohs(name, dynasty). Join monuments.builder = pharaohs.name.

Starting point

SELECT m.name, m.builder, p.dynasty
FROM monuments m
JOIN pharaohs p ON ...
ORDER BY ...;

The reference solution is checked automatically when you run your query on the practice page — results are compared row by row, and order matters for this one.

Did you know

The Great Sphinx and Khafre’s pyramid share a builder and a site (Giza) — the Sphinx’s face is widely thought to be Khafre’s. (Britannica)

More History challenges

Open it in the playground →