📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

An Order has many OrderLines and each OrderLine belongs to one Order. Where is the foreign key?

A. In the Order table
B. In a junction table
C. In the OrderLine table, referencing OrderID ✅
D. In the Customer table

Correct Answer: C. In the OrderLine table, referencing OrderID

Explanation

The many side, OrderLine, holds OrderID as a foreign key to its single order.