Archive Database Step 6: Include the Zeroes

Write a query listing every author with the number of books held, including the authors with none, showing 0 rather than omitting them. Get the COUNT right: check specifically that an author with no books shows 0 and not 1. Then write the anti-join version listing only the authors with nothing, and confirm the two agree. A report that silently omits the empty cases is the most common quiet error in reporting, and now you have written both versions and seen the difference.

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 7: Grouping and Aggregates →