98-364 Exam QuestionsBrowse all questions from this exam

98-364 Exam - Question 6


Which statement creates a composite key?

Exam 98-364 Question 6
Show Answer
Correct Answer: D

A composite key is created by combining two or more columns to form a unique key for a table. In option D, the statement 'PRIMARY KEY(OrderID, OrderItemID)' specifies a primary key that consists of both OrderID and OrderItemID columns. This combination ensures that each row is uniquely identified by the combined values of these two columns, forming a composite key.

Discussion

4 comments
Sign in to comment
jrn1992
Jun 1, 2020

A composite key is a combination of two or more columns in a table that can be used to uniquely identify each row in the table when the columns are combined uniqueness is guaranteed, but when it taken individually it does not guarantee uniqueness.

Deehjosh
Nov 21, 2019

the answer is D

elkreationZ
Jun 25, 2021

The correct answer is D

Eva_
Nov 14, 2021

Isn't primary key unique by itself?