In analyzing the following diagram, what is wrong with one of the relationships?
ID: 3594226 • Letter: I
Question
In analyzing the following diagram, what is wrong with one of the relationships?
Explanation / Answer
Answer: b relationship is wrong
a. The line between ORDER and ORDER_ITEM needs to be one to one or many.This relationship is correct because one order can contain one or many order items. So many order item ids can contain same order id.
b. The line between ORDER and ORDER_ITEM needs to be zero to one or many. This relationship is not correct because every order item id in order_item table must be associated with at least one order id. so this relationship can't be zero to one or many.
c. The line between EMPLOYEE and ORDER should be one to one or many. This relationship is correct because many orders can be associated with one employee.
d. The line between CUSTOMER and ORDER should be one to one or many. This relationship is correct because one customer can have many orders.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.