exam questions

Exam 70-461 All Questions

View all questions & answers for the 70-461 exam

Exam 70-461 topic 1 question 249 discussion

Actual exam question from Microsoft's 70-461
Question #: 249
Topic #: 1
[All 70-461 Questions]

DRAG DROP -
You develop a Microsoft SQL Server database for an educational institution. The database contains tables named ExamEvaluation and ProjectEvaluation, which are used to track student scores. The tables are created by using the following code:

Students are evaluated based on the following rules:
Each student will complete a maximum of one exam and one project.

✑ A student must complete at least one exam.
✑ A single exam consists of multiple sections, where the student is evaluated based on the average score of all sections.
✑ A single project consists of Section A and Section B, where the student is evaluated by adding 60 percent of Section A and 40 percent of Section B.
✑ At any given time, a student may have completed only an exam, or both an exam and a project.
You want to create a summary report of student evaluations.
You need to write a query that will return evaluation results for students who have completed any form of evaluation, grouped by the year of undertaling. A sample result set is shown in the following table.

Which five Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-
SQL segments to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: SELECT..

The outer select statement -
Box 2: (SELECT ..AVG(SectionScore)
Need the average score: A single exam consists of multiple sections, where the student is evaluated based on the average score of all sections.

Box 3: LEFT OUTER JOIN -
There might be no finished Project
Box 4: ON..

Box 5: (SELECT ..SUM -
Need the SUM function to handle addition of NULL values.
References:
https://docs.microsoft.com/en-us/sql/t-sql/functions/sum-transact-sql

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
lilupv
4 years, 11 months ago
The last statement for Project is not correct, because GROUP BY must be used in this case. I think, the statement without SUM must be chosen instead.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...