--:--









Quiz for Ranking Functions

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



Logo

Q1: Which of the following is a ranking function in SQL?

Logo

Q2: Which function assigns a unique rank to each row without gaps in ranking values?

Logo

Q3: What does the RANK() function do in SQL?

Logo

Q4: What is the difference between ROW_NUMBER() and RANK()?

Logo

Q5: Which ranking function can assign the same rank to tied rows and skip the next rank?

Logo

Q6: What is the use of NTILE(n) in SQL?

Logo

Q7: Which clause is essential with ranking functions?

Logo

Q8: What will ROW_NUMBER() OVER (ORDER BY salary DESC) return?

Logo

Q9: Which ranking function provides sequential values with possible duplicates for same values?

Logo

Q10: If two rows have the same rank using RANK(), what is the next rank value?

Logo

Q11: Which function is most suitable for assigning a row number to each record?

Logo

Q12: What does PARTITION BY do in ranking functions?

Logo

Q13: Which function provides ranking without gaps between tied ranks?

Logo

Q14: Which ranking function always returns a different number for each row?

Logo

Q15: Which ranking function is best used to get top 3 salaries per department?

Logo

Q16: What happens when ORDER BY is not used in OVER clause?

Logo

Q17: Can we use ranking functions in WHERE clause directly?

Logo

Q18: Which function divides result set into approximately equal parts?

Logo

Q19: Which ranking function is used to generate a serial number across rows?

Logo

Q20: To restart ranking for each department, which clause is required?

Logo

Q21: What does NTILE(4) OVER (ORDER BY salary) do?

Are you ready to start test? Set your time limit