Problems / Selective Columns / Editorial
The table has 15 columns but we only need category and amount. The key optimization:
category
amount
In production data warehouses, tables often have 50-100+ columns. A SELECT * followed by aggregation forces the engine to read and process every column, even those not involved in the computation. Explicit column selection can reduce I/O by 90%+ in wide tables.
SELECT *
Solve Selective Columns yourself →