EER Diagram Assignment for Database Systems
EER Diagram Assignment for Database Systems
When modeling entities like PERSON with subtypes CAMPER, BIKER, and RUNNER, several distinguishing design requirements must be considered. If a person can only be one subtype at a time, mutually exclusive constraints must be applied. Conversely, if a person can simultaneously be of multiple subtypes, the design allows for overlapping subtype participation. This could involve using a partial participation constraint where each subtype is a separate component of the entity's overall type, effectively creating a union of all potential roles a person can assume .
In the traditional EER model, plaintiffs and defendants in legal cases are captured through several relationships. Each case is uniquely identified by a case number, with attributes such as date opened, date closed, and judgment description. Plaintiffs, who can be either individuals or organizations, are associated with one or more cases and can request a judgment characteristic. Similarly, defendants also involve attributes like entity number, name, and net worth. Both plaintiffs and defendants may be engaged in multiple cases, allowing complex many-to-many relationships to be represented between legal entities and cases .
Handwritten submissions are emphasized to ensure authenticity and reduce plagiarism. This method complies with academic integrity policies by making copying more challenging, as every group member must contribute manually to the assignment. Additionally, it aligns submissions with traditional examination methods, reinforcing handwriting skills that are often underused in digital-centric environments .
The EER model for a law firm accommodates role changes by allowing plaintiffs and defendants to be modeled as flexible, temporal entities with attributes such as entity number, name, and net worth shared between these roles. It supports dynamic role allocation: a person or organization can shift between being a plaintiff or defendant over time, reflecting real-life legal dynamics. This adaptability is managed through a detailed relationship model that includes case associations and historical tracking of role-specific traits such as requested or actualized judgments .
In an EER diagram, the relationship between persons and organizations is represented using the traditional EER subtypes-inside-supertypes notation. A person, identified by attributes like ID, name, and birth date, may have multiple employment relationships with organizations, which are also identified by their ID, name, and a budget number. The employment relationship includes details like employment date, termination date, and bonus. Positions within an organization are tracked, including title, start and termination dates, and salary. A person can have different roles in the organization, which are managed under this employment scenario .
Mandatory subtype membership in a bank account EER model ensures clarity and robustness in system design by preventing ambiguous or undefined states (i.e., an account not being associated with any specific type). While this enforces structure and reduces errors related to atypical account types, it may challenge situations where flexibility is needed, such as hybrid or new financial products that do not fit neatly into existing categories .
Allowing position responsibilities to be held by different organizations in one employment scenario implies flexibility in managing organizational roles and responsibilities. This reflects real-world situations where a position within one organization might be strategically managed or funded by another organization. This structure requires careful handling of position attributes such as title, start and end dates, and salary, to accurately record and reflect the differing responsibilities and potential overlap in organizational management .
For the banking system scenario, the EER model utilizes generalization to distinguish account types such as CHECKING, SAVINGS, and LOAN under a common account entity type. Key attributes include Acct No, Date Opened, and Balance for all account types. Additional attributes differ, such as Service Charge for CHECKING accounts, Interest Rate for SAVINGS, and both Interest Rate and Payment for LOAN accounts. This ensures each bank account is classified as exactly one of these types .
The use of generalization in modeling bank accounts enhances data integrity by consolidating common attributes across account types, such as Acct No, Date Opened, and Balance, into a single supertype. This reduces redundancy and potential inconsistencies, as each account is constrained to inherit from this unified set of attributes, ensuring that all accounts maintain standard data structures while allowing subtype-specific information to be appended as needed .
When designing an EER diagram for a scenario where a person holds multiple simultaneous employment roles, considerations include the flexibility to model overlapping employment and the complexity of capturing multiple, separate employment attributes (e.g., start date, termination date, salary) per position. Care must be taken to ensure that relationships accurately reflect the potential concurrency of roles and the association with potentially different organizations. This requires a robust entity and relationship framework that can track multi-dimensional employment attributes separately for each role without redundancy .