nerdexam
Microsoft

70-433 · Question #84

You need to write a query that allows you to rank total sales for each salesperson into four groups, where the top 25 percent of results are in group 1, the next 25 percent are in group 2, the next…

The correct answer is B. NTILE(4). See the full explanation below for the reasoning.

Question

You need to write a query that allows you to rank total sales for each salesperson into four groups, where the top 25 percent of results are in group 1, the next 25 percent are in group 2, the next 25 percent are in group 3, and the lowest 25 percent are in group 4. Which Transact-SQL statement should you use?

Options

  • ANTILE(1)
  • BNTILE(4)
  • CNTILE(25)
  • DNTILE(100)

How the community answered

(46 responses)
  • A
    15% (7)
  • B
    72% (33)
  • C
    4% (2)
  • D
    9% (4)

Community Discussion

No community discussion yet for this question.

Full 70-433 Practice