exam questions

Exam 70-767 All Questions

View all questions & answers for the 70-767 exam

Exam 70-767 topic 1 question 35 discussion

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

DRAG DROP -
You deploy a Microsoft Server database that contains a staging table named EmailAddress_Import. Each night, a bulk process will import customer information from an external database, cleanse the data, and then insert it into the EmailAddress table. Both tables contain a column named EmailAddressValue that stores the email address.
You need to implement the logic to meet the following requirements:
✑ Email addresses that are present in the EmailAddress_Import table but not in the EmailAddress table must be inserted into the EmailAddress table.
✑ Email addresses that are not in the EmailAddress_Import but are present in the EmailAddress table must be deleted from the EmailAddress table.
How should you complete the Transact-SQL statement? To answer, drag the appropriate Transact-SQL segments to the correct locations. Each Transact-SQL segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: EmailAddress -
The EmailAddress table is the target.

Box 2: EmailAddress_import -
The EmailAddress_import table is the source.

Box 3: NOT MATCHED BY TARGET -

Box 4: NOT MATCHED BY SOURCE -
References: https://docs.microsoft.com/en-us/sql/t-sql/statements/merge-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
kimalto452
4 years, 8 months ago
"Box 4: NOT MATCHED BY SOURCE" delete data from target that not match... I think its not correct...
upvoted 1 times
kimalto452
4 years, 8 months ago
Its correct, sorry
upvoted 3 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 ...