Practice · Art & Cinema · Medium

Still with us

Return the name and domain of cultural figures who are still living (death_year IS NULL), name A→Z.

Runs in your browser. No signup needed.

What you are given

cultural_figures(name, domain, birth_year, death_year). A NULL death_year means still living.

Starting point

SELECT name, domain
FROM cultural_figures
WHERE death_year IS NULL
ORDER BY name;

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

Handling NULLs correctly (IS NULL, not = NULL) is one of the most common real-world SQL bugs — three-valued logic trips up even senior analysts. (SQLite docs)

More Art & Cinema challenges

Open it in the playground →