📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A Vehicle and its Engine have a one-to-one link. The Engine table uses VehicleID as both its primary key and foreign key. What is this pattern called?

A. Shared primary key ✅
B. Composite key
C. Junction table
D. Surrogate key

Correct Answer: A. Shared primary key

Explanation

In the shared primary key pattern, the child table reuses the parent primary key as its own primary key and foreign key.