exam questions

Exam 70-767 All Questions

View all questions & answers for the 70-767 exam

Exam 70-767 topic 1 question 21 discussion

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

HOTSPOT -
Your company has a Microsoft SQL Server data warehouse instance. The human resources department assigns all employees a unique identifier. You plan to store this identifier in a new table named Employee.
You create a new dimension to store information about employees by running the following Transact-SQL statement:

You have not added data to the dimension yet. You need to modify the dimension to implement a new column named [EmployeeKey]. The new column must use unique values.
How should you complete the Transact-SQL statements? To answer, select the appropriate Transact-SQL segments in the answer area.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

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, 2 months ago
employeID it can be business key or something else so they use employeKey
upvoted 1 times
...
bhrv
4 years, 3 months ago
Yeah for me it is also not clear why EmployeeID is not Primary, given we extract EmployeeKey from source
upvoted 1 times
Tinashe16
4 years, 1 month ago
If you do what you’re saying, it means EmployeeKey is only defined as NOT NULL. But the requirement says it has to be UNIQUE. With the provided options, we have to make it Primary to make sure it is unique. So the provided answer is therefore correct.
upvoted 1 times
...
Hoglet
4 years, 1 month ago
We are creating EmployeeKey as an IDENTITY column, it's NOT coming from source
upvoted 2 times
...
...
Lukis92
4 years, 3 months ago
The second option is not correct. The primary key should be defined for EmployeeID column, because is a surrogate key. In our case, EmployeeKey is an alternate key. In my opinion in the second box is: PRIMARY KEY CLUSTERED (EmployeeID)
upvoted 1 times
Hoglet
4 years, 1 month ago
EmployeeKey is acting as a surrogate key, it is an identity column after all
upvoted 2 times
...
Tinashe16
4 years, 1 month ago
If you do what you’re saying, it means EmployeeKey is only defined as NOT NULL. But the requirement says it has to be UNIQUE. With the provided options, we have to make it Primary to make sure it is unique. So the provided answer is therefore correct.
upvoted 2 times
...
...
Anette
4 years, 5 months ago
correct
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago