SQL - Window Functions Fundamentals
Identify the syntax error in this query:
SELECT id, ROW_NUMBER() PARTITION BY category ORDER BY price FROM products;
SELECT id, ROW_NUMBER() PARTITION BY category ORDER BY price FROM products;
ROW_NUMBER() function requires an OVER() clause enclosing PARTITION BY and ORDER BY.OVER() keyword, causing a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions