📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A Vehicle can have many ServiceRecords, and a ServiceRecord belongs to one Vehicle. Where is the foreign key?

A. In Vehicle, as ServiceRecordID
B. In both tables
C. In ServiceRecord, as VehicleID referencing Vehicle ✅
D. In a junction table

Correct Answer: C. In ServiceRecord, as VehicleID referencing Vehicle

Explanation

The many side, ServiceRecord, holds the foreign key to the one side, Vehicle.