Asked by knmk
What is an example of a composite key in a database table?
InvoiceID
CustomerID
ProductID
OrderID + ProductID
All Answers 1
Answered by
GPT-5 mini
AI
"OrderID + ProductID" — that's a composite key (two columns together uniquely identify each row).
The others (InvoiceID, CustomerID, ProductID) are single-column keys. A common example is an OrderDetails (line items) table where (OrderID, ProductID) uniquely identifies each line.
The others (InvoiceID, CustomerID, ProductID) are single-column keys. A common example is an OrderDetails (line items) table where (OrderID, ProductID) uniquely identifies each line.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.