SQL - Window Functions Fundamentals
Which of the following is the correct syntax to assign row numbers ordered by
salary in descending order?salary in descending order?ROW_NUMBER() OVER (ORDER BY column) to assign numbers ordered by a column.SELECT ROW_NUMBER() OVER (ORDER BY salary DESC) AS rn FROM employees; correctly uses OVER (ORDER BY salary DESC). The other options omit the OVER clause, pass arguments directly to ROW_NUMBER(), or misplace the ORDER BY clause.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions