SQL - CASE Expressions
Given the table
orders with columns category and amount, what does this query return?SELECT category, SUM(CASE WHEN amount > 100 THEN 1 ELSE 0 END) AS big_orders FROM orders GROUP BY category;