



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Announcements CCSC conference โ student volunteers! Midterm Grades
This form shows a list of departments for the company Ajax Manufacturing. So we can determine that a company has many departments. But what about the other way? How many companies does a department have? We can't tell from the form, and we don't have any reports. So, we need to think about that โ we can ask the users, or we can think about what these entities mean. Does it make sense for a department to belong to more than one company? Probably not. So, this is a 1:N relationship. What about minimum cardinality? Does a company have to have a department? Does a department have to have a company? We better ask the users! Slide 9 shows situation where Department must have a Company, but a Company does not have to have any Departments. Slides 10, 11 and 12: N:M Strong Entity Relationship The form shows information about a supplier and the parts it can supply. The report lists parts and the suppliers that can provide them. We can see from these two views that (1) suppliers supply many parts, and (2) parts are available from multiple suppliers. Now, what about minimum cardinality? Does supplier have to have at least one part? Does a part have to come from at least one company? Slide 12 shows case where supplier is treated as a company. Not all companies are suppliers, so the relationship is M-O. [Note mistake: relation between Company and Part is non-identifying, so line should be dashed] Note that in two of these cases, we had a report and a form. One of them allowed us to determine the max cardinality of the relation in one direction, and the second for the opposite direction. If we only have one form, we can only determine the max cardinality for one direction. ID-Dependent Entity Patterns The Association Pattern This pattern is similar to the N:M strong entity pattern we just looked at. Let's look at the report on Slide 13. How does this differ from the report on Slide 11? There is a new Price column. What entity is this associated with? It's not an attribute of Company, and it's not an attribute of Item either. It's really an attribute of the combination of the two. See Slide 14. Slide 15 - Note that the identifier of the Quotation entity is PartNumber and CompanyName โ therefore, it is ID-dependent on both Part and Company.
Minimum cardinality: since these are identifying relationships, the minimum cardinality for the parent must be 1. The minimum cardinality in the other direction is determined by business requirements. In the drawing, A Part must have a quotation, but a company doesn't have to. Let's examine slides 12 and 15 again โ the difference between them is that in one of them the relationship between Company and Part has an attribute: