nerdexam
Microsoft

70-457 · Question #68

70-457 Question #68: Real Exam Question with Answer & Explanation

Sign in or unlock 70-457 to reveal the answer and full explanation for question #68. The question stem and answer options stay visible for context.

Question

You create a table that has the StudentCode, SubjectCode, and Marks columns to record mid- year marks for students. The table has marks obtained by 50 students for various subjects. You need to ensure that the top half of the students arranged by their average marks must be given a rank of 1 and the remaining students must be given a rank of 2. Which Transact-SQL query should you use?

Options

  • ASELECT StudentCode as Code,
  • BSELECT Id, Name, Marks, DENSE_RANK () OVER (ORDER BY Marks DESC) AS Rank
  • CSELECT StudentCode as Code,
  • DSELECT StudentCode as Code,
  • ESELECT StudentCode AS Code,Marks AS Value
  • FSELECT StudentCode AS Code,Marks AS Value FRCM (
  • GSELECT StudentCode AS Code,Marks AS Value FROM
  • HSELECT StudentCode AS Code,Marks AS Value FROM

Unlock 70-457 to see the answer

You've previewed enough free 70-457 questions. Unlock 70-457 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-457 Practice
You create a table that has the StudentCode, SubjectCode, and... | 70-457 Q#68 Answer | NerdExam