Compute revenue per product category for paid orders only (status = 'paid'). Line revenue = quantity * order_items.price.
Columns: category, revenue. Sort by revenue descending.
PostgreSQL 17. Queries run right in your browser; “Reset DB” restores the original data.
Starting PostgreSQL…
Starting PostgreSQL…