SQL - Advanced Window Functions
Identify the issue in this query intended to calculate a running total of
amount ordered by transaction_date across all rows:SELECT id, amount, SUM(amount) OVER (PARTITION BY category ORDER BY transaction_date) AS running_total FROM sales;
