70-433 · Question #120
You have two tables. A table named Student.CurrentStudents contains the names of all students enrolled for the current year. Another table named Student.NewYearRoster contains the names of students…
The correct answer is A. MERGE Student.CurrentStudents AS T. See the full explanation below for the reasoning.
Question
You have two tables. A table named Student.CurrentStudents contains the names of all students enrolled for the current year. Another table named Student.NewYearRoster contains the names of students who have enrolled for the upcoming year. You have been tasked to write a MERGE statement to:
Insert into Student.CurrentStudents the names of students who are enrolled for the upcoming year but not for the current year. Update information in Student.CurrentStudents for students who are enrolled both in the current year and in the upcoming year. Delete from Student.CurrentStudents the names of students who are not enrolled for the upcoming year. You need to write the appropriate MERGE statement. Which Transact-SQL statement should you use?
Options
- AMERGE Student.CurrentStudents AS T
- BMERGE Student.CurrentStudents AS T
- CMERGE Student.CurrentStudents AS T
- DMERGE Student.CurrentStudents AS T
How the community answered
(30 responses)- A83% (25)
- B3% (1)
- C10% (3)
- D3% (1)
Community Discussion
No community discussion yet for this question.