Homework 2: ER Schema Interpretation
The goal of this homework is to practice interpreting ER schema diagrams.
Instructions
You are welcome to work with a partner.
Consider the ER diagram shown below for part of a BANK database. Each bank can have multiple branches, and each branch can have multiple accounts and loans.
- List the strong (non-weak) entity types in the ER diagram.
- For the weak entity type, give its:
- Name
- Partial key
- Identifying relationship
- Give a candidate key for the CUSTOMER entity type.
- Based on the ER diagram:
- How many accounts do customers have?
- For example: At most one? Exactly one? At least one? Any number?
- How many customers are on an account?
- How many bank branches are associated with an account?
- How many accounts do customers have?
- Write a short paragraph describing the user requirements that led to BANK, BANK_BRANCH, and BRANCHES as depicted in this ER schema design. Describe the attributes, keys, and cardinality.
Hint: You may find it helpful to refer to the notation in Figure 3.14, from Lab 2.
Submit
Submit your responses on Gradescope.