exam questions

Exam 98-364 All Questions

View all questions & answers for the 98-364 exam

Exam 98-364 topic 1 question 96 discussion

Actual exam question from Microsoft's 98-364
Question #: 96
Topic #: 1
[All 98-364 Questions]

You have two tables named Salesperson and Sales.
You need to ensure that each record in the Sales table has a valid associated salesperson record in the Salesperson table.
Which database object should you add to the Sales table?

  • A. Nonclustered index
  • B. Primary key
  • C. Foreign key
  • D. Clustered index
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
cdc
Highly Voted 5 years, 6 months ago
I believe the answer is Foreign Key. Each salesman in the parent SalesPerson table may have 0,1 or more sales in the Sales table (child table). To ensure that each sale is related to a record in the SalesPerson table, a foreign key reference would be created in Sales. I assume the Primary Key in Sales would be something such as an InvoiceNumber and the Primary Key in SalesPerson would be SalemanID.
upvoted 34 times
...
HuyNgo
Highly Voted 5 years, 1 month ago
I think the correct answer is C. Foreign key
upvoted 18 times
...
dim37
Most Recent 1 year, 3 months ago
Selected Answer: C
the answer is Foreign Key.
upvoted 1 times
...
dzoni68
2 years, 6 months ago
I believe that the correct answer is Foreign Key. A foreign key is a key used to link two tables together. This is sometimes also called a referencing key. A Foreign Key is a column or a combination of columns whose values match a Primary Key in a different table.
upvoted 1 times
...
mco2l
2 years, 8 months ago
Selected Answer: C
Should be C. Foreign Key
upvoted 2 times
...
emka_ka
2 years, 9 months ago
Selected Answer: B
Primary Key on Sales. If we had Primary Key on Persons and Foreign on Sales, we would not ne in the First Normal Form, because one salesperson would have 'repeated groups' that is multiple salesIDs in the person record. So our main table is Sales that has a Primary Key (ie SalesID), in which we can have also a Foreign Key indicating a singular sale person from persons table. But Persons would be auxiliary table serving Sales, not other way round.
upvoted 1 times
...
Jonny98101
2 years, 9 months ago
Selected Answer: C
Answer is C. It's like they want you to fail the exam.
upvoted 1 times
...
TogueTagno
2 years, 10 months ago
Selected Answer: C
Foreign Key
upvoted 1 times
...
PETBOZ
2 years, 10 months ago
Selected Answer: C
It should be foreign key.
upvoted 1 times
...
defcon1
3 years ago
Correct answer is C - foreign key. Via Wikipedia: A foreign key is a set of attributes in a table that refers to the primary key of another table. The foreign key links these two tables.
upvoted 1 times
...
EshaM
3 years, 3 months ago
They have asked what should you add to sales table so the answer is PRIMARY KEY. If they had asked what needs to be added to SalesPerson table then the answer would have been Foreign Key.
upvoted 1 times
EshaM
3 years, 3 months ago
I take back my previous comment. Foreign Key is correct answer.
upvoted 2 times
...
...
qaqa111
3 years, 8 months ago
Definitely Foreign Key
upvoted 2 times
...
Mirela_Rona
3 years, 9 months ago
The correct answer is foreign key.
upvoted 2 times
...
Judetheobscure
3 years, 10 months ago
I thought foreign key also
upvoted 2 times
...
CertMeUp
4 years, 2 months ago
Correct answer is C.
upvoted 2 times
...
bulat
4 years, 3 months ago
Foreign Key
upvoted 2 times
...
Jovial
4 years, 6 months ago
Answer is Foreign Key . I have tested it
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago