SQL - Window Functions Fundamentals
Identify the syntax error in this SQL query using a window function:
SELECT id, amount, RANK() OVER PARTITION BY category ORDER BY amount DESC FROM products;
