Window Functions in T-SQL Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Advanced Query Techniques

What you'll be asked

  1. Which clause is used in a window function to define the set of rows to which the function is applied?
  2. What is the primary difference between the RANK() and DENSE_RANK() functions?
  3. If you want to compare the current row's value with the value of the previous row, which function should you use?
  4. When using a window function, what happens if you omit the PARTITION BY clause?
  5. Consider a query with `ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW`. What does this frame specification define?

Answers and explanations come after you submit.