1.

In rank() function if one value is shared by two tuples then(a) The rank order continues as counting numbers(b) The rank order continues by leaving one rank in the middle(c) The user specifies the order(d) The order does not changeThis question was addressed to me in an online interview.Question is from Recursive Queries and Aggregation Features in division SQL : Queries, Constraints and Triggers of Database Management

Answer»

The correct OPTION is (b) The RANK order continues by LEAVING one rank in the middle

Easiest explanation - Example. rank() over (order by (GPA) desc).



Discussion

No Comment Found

Related InterviewSolutions