Explain conditional aggregation with CASE inside aggregate functions for pivoting and cohort analysis
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks you to explain conditional aggregation, where a CASE expression sits inside an aggregate function, and to show where it helps with pivot tables and cohort analysis. It tests SQL fluency with NULL handling, GROUP BY design and retention-style reporting.