1.

The functions which construct histograms and use buckets for ranking is(a) Rank()(b) Newtil()(c) Ntil()(d) None of the mentionedThis question was addressed to me in final exam.I would like to ask this question from Recursive Queries and Aggregation Features topic in division SQL : Queries, Constraints and Triggers of Database Management

Answer»

Correct option is (c) NTIL()

The EXPLANATION is: For each TUPLE, ntile(n) then GIVES the number of the bucket in which it is placed, with bucket numbers starting with 1.



Discussion

No Comment Found

Related InterviewSolutions