Archive Database Step 8: Rewrite for Reading

Take the most complicated query you have written so far and rewrite it using CTEs, one stage per CTE, each named for what it produces. Then show both versions to somebody and ask which they can explain back to you. Keep the one that wins. Then write one query using a subquery as a value, and one anti-join written two ways, once with NOT EXISTS and once with a LEFT JOIN, and confirm they agree.

SANKOFA SANDBOX
loading editor…
Your turn → Work through it step by step. This is a piece of the course project, not a throwaway exercise.

Built it in both languages?

Mark it done once your Python and JavaScript versions both run correctly. Honesty here is what makes the dashboard useful to you.

← BackNext: Module 9: Changing Data →