You need to calculate the average monthly salary for each department, but you also want to see the individual employee's monthly salary alongside this departmental average, without collapsing the rows. Which of the following SQL queries correctly uses a window function to achieve this?单项选择题

登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
Why use a window function instead of GROUP BY for a running total?
Given the following query: Which of the following is true about the dept_rank column?
Question at position 42 Window functions can be a part of a calculation within a SELECT statement.TrueFalse
Question at position 31 Which of the following is a valid window function?COUNT()ROW_NUMBER()SUM()All of these
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!