📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

In Orders(CustomerID) referencing Customers(CustomerID), what does referential integrity prevent?

A. Inserting a customer with no orders
B. Deleting an order
C. Inserting an order for a non-existent customer ✅
D. Updating a customer's name

Correct Answer: C. Inserting an order for a non-existent customer

Explanation

An order must belong to a real customer, so a foreign key for a missing customer is rejected.