📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which example best illustrates a compound key in a real database?

A. PassportNo alone in a travellers table
B. Email alone in a customers table
C. EmployeeID alone in an employees table
D. (OrderID, ProductID) in an order-lines table ✅

Correct Answer: D. (OrderID, ProductID) in an order-lines table

Explanation

An order line is identified by its order and its product together, a classic compound key.