Problems / Conditional Aggregation / Editorial
Conditional aggregation pivots row-level categories into columns:
This pattern is the manual equivalent of a PIVOT operation. It transforms categorical values in rows into separate columns, which is one of the most common real-world SQL patterns.
Solve Conditional Aggregation yourself →