B, DENSE_RANK.
Tied rows share a position, and the next row takes the next number: 1, 2, 2, 3.
RANK leaves a gap after the tie (1, 2, 2, 4). ROW_NUMBER gives every row its own number (1, 2, 3, 4).
This SQL query ranks four salaries with one tie and returns pos 1, 2, 2, 3.
SELECT name, salary,
____() OVER (ORDER BY salary DESC) AS pos
FROM employees;
A) RANK
B) DENSE_RANK
C) ROW_NUMBER
Which window function would you write?