--:--









Quiz for Window Functions

Course: SQL | Subject: SQL | Topic: Advanced SQL



Logo

Q1: Which function assigns a unique rank without gaps?

Logo

Q2: Which clause is required for a window function in SQL?

Logo

Q3: What does the ROW_NUMBER() window function do?

Logo

Q4: Which clause is required for window functions to define the set of rows for calculation?

Logo

Q5: Which window function returns the number of rows preceding the current row?

Logo

Q6: What does the RANK() function return when rows have duplicate values?

Logo

Q7: What is the main difference between RANK() and DENSE_RANK()?

Logo

Q8: Which function returns the next row’s value?

Logo

Q9: Which of the following can be used with a window function?

Logo

Q10: Can window functions be used in WHERE clause?

Logo

Q11: What happens if ORDER BY is omitted in OVER clause for ROW_NUMBER()?

Logo

Q12: Which function calculates a running total?

Logo

Q13: Which window function returns a value based on a specific row offset?

Logo

Q14: What does the NTILE(n) function do?

Logo

Q15: Which function returns the first value in an ordered window frame?

Logo

Q16: What is required for a function to be considered a window function?

Logo

Q17: Which function returns the last value in a partition or frame?

Logo

Q18: How do window functions differ from aggregate functions?

Logo

Q19: Which function ranks items continuously without gaps?

Logo

Q20: What clause can be added to OVER() to reset the window function per group?

Logo

Q21: Which clause defines the sort order within a window function?

Logo

Q22: Can aggregate functions be used as window functions?

Are you ready to start test? Set your time limit