183k views
1 vote
consider the following business rule: a customer can generate multiple invoices. an invoice is only generated by a single customer. how does this business rule(s) affect the database design? a.) the business rules define that there is a relationship between customer and invoice, and a one-to-one relationship between those two entities. b.) the business rules define that there is a relationship between customer and invoice, and a one-to-many relationship between those two entities. c.) the business rules define that there isn't a need for a relationship between the customer and invoice entities, as the relationship isn't a strong one. d.) the business rules define that there is a relationship between customer and invoice, and an many-to-many relationship between those two entities requiring a bridge table.

1 Answer

2 votes

Final answer:

The business rule defines a one-to-many relationship between the customer and invoice entities. The correct answer is b.) the business rules define that there is a relationship between customer and invoice, and a one-to-many relationship between those two entities.

Step-by-step explanation:

This business rule states that a customer can generate multiple invoices, but each invoice is only generated by a single customer. This indicates a one-to-many relationship between the customer and invoice entities. This means that a customer can have multiple invoices, but each invoice is associated with only one customer.

For example, let's say we have a customer named John. John can generate multiple invoices for various purchases he makes. Each invoice is unique to John and represents a specific purchase he made. Therefore, the relationship between John and his invoices is a one-to-many relationship.

User Nemesis
by
7.6k points