Question

In: Computer Science

Overview In this lab, you will design an Enhanced Entity Relationship (EER) diagram to improve on...

Overview

In this lab, you will design an Enhanced Entity Relationship (EER) diagram to improve on the database design that you have worked on in the previous weeks.

The new design will include additional improvements such as:

  1. Inheritance Relationships
  2. Constraints
  3. Union Types

A clear and well-documented explanation of all your modifications and the EER diagram.

can you please give me an example of how to start this or what am i supposed to do!!!

Solutions

Expert Solution

EER MODEL:

  1. Enhanced entity-relationship diagrams, or EERDs, are specialized ER Diagrams that can be extremely useful for modeling your database.
  2. EERDs use several concepts that are closely related to object-oriented design and programming.
  3. ER model, when incorporates new concepts, is called Enhanced ER model.

INHERITANCE RELATIONSHIP(Superclass/Subclass Relationship):

  1. In many cases an entity type has numerous subgroupings or subtypes of its entities that are meaningful.
  2. They need to be represented explicitly because of their significance to the database application.

Example:

  • EMPLOYEE could be PERMANENT or TEMPORARY.
  • STUDENT could be UNDERGRADUATE or POSTGRADUATE.
  • ACCOUNT could be SAVING, CURRENT or DMAT.

Concept about Superclass/Subclass:

1)Reasons for using superclass/subclass:

1. certain attributes may apply to some but not all entities of the superclass.

2. some relationship types may be participated in only by entities that are members of the subclass.

2)Every instance of any subclass is also a member of its superclass.

3)Relationship between a superclass and any one of its subclasses is called class/subclass relationship (also called IS-A relationship).

4) A subclass inherits all the attributes and relationships of its superclass.

5) A subclass can have relationship types with other entities, independently of the superclass.

  • Superclass - an entity type that relates to one or more subclass.

  • Subclass- a subgroup of entities with unique attributes.

  • Inheritance - the concept that subclass entities inherit the values of all superclass attributes.

SPECIALIZATION :

1) Specialization is the process of defining a set of subclasses of an entity type; this entity type is called the superclass of the specialization.

CONSTRAINT:

1)A specialization may result in one or more subclasses.

 Predicate defined subclasses:

1. Subclasses are usually identified by a condition on the value of some attribute of the superclass. 2.Such subclasses are called predicate-defined (or condition-defined) subclasses.

3. Example:

 (Job_type = ‘Secretary’)

 This condition is a constraint specifying that exactly those entities of the EMPLOYEE entity type whose attribute value for Job_type is ‘Secretary’ belong to the subclass.

2) If all subclasses are based on the same attribute of the superclass, the specialization itself is called an attributedefined specialization.

3) such an attribute is called the defining attribute.

4) When we do not have a condition for determining membership in a subclass, the subclass is called user- defined.

TYPES OF CONSTRAINT:

1) Disjointness constraint:

1) An attribute-defined specialization implies the disjointness constraint.

2) When subclasses are disjoint, an entity can be a member of at most one of the subclasses of the specialization.

3)If the subclasses are not constrained to be disjoint, their sets of entities may be overlapping.

Fig:Disjoint

  

Fig.Overlapping

2)Completeness constraint:

   It is a constraint on the belongingness of superclass member in subclasses.

 It could be total or partial:

 Total: every entity in the superclass must be a member of at least one subclass in the specialization.

 Generalization process is usually total.

 Partial: an entity may not belong to any subclass.

Fig:Disjoin&Partial

  

Fig.Overlapping&total

Union Types:

When a single subclass is modelled using more than one superclasses, usually of different entity types, such a subclass is called a union type or a category.


Related Solutions

A database needs to be developed that supports a supermarket. (i) Design an entity-relationship diagram that...
A database needs to be developed that supports a supermarket. (i) Design an entity-relationship diagram that captures, as far as possible, the requirements stated below. (Statements in brackets are additional explanations and not part of the requirements proper.) If you make any assumptions in your design, please write them down. Assumptions, however, must not contradict the requirements. 1. The supermarket sells products. Each product is uniquely identified by its product number. Moreover, a product has price. The supermarket also records...
You are creating an enhanced entity relationship model for a campus information system. A junior team...
You are creating an enhanced entity relationship model for a campus information system. A junior team member who is helping you asks you to describe the following terms with examples of relevant entities from the system, for example, students, activities etc. 1.       Supertype and Subtype 2.       Disjoint and Overlapping Discriminator 3.       Total and Partial Completeness 4.       Attribute Inheritance
You are creating an enhanced entity relationship model for a campus information system. A junior team...
You are creating an enhanced entity relationship model for a campus information system. A junior team member who is helping you asks you to describe the following terms with examples of relevant entities from the system, for example, students, activities etc. 1.       Supertype and Subtype 2.       Disjoint and Overlapping Discriminator 3.       Total and Partial Completeness 4.       Attribute Inheritance
Design a database through the EER diagram to keep track of the teams and games of...
Design a database through the EER diagram to keep track of the teams and games of a sport league. Assume that the following requirements are collected (the English description of cardinal ration and partial/complete participate is NOT required, but you still need to provide the total/partial and cardino ration in your EER diagram) : The database has a collection of TEAM. Each Team has a unique name, players, and owner. The database also keeps the records of PLAYERS. Each player...
You are creating an enhanced entity-relationship model for a campus information system. A junior team member...
You are creating an enhanced entity-relationship model for a campus information system. A junior team member who is helping you asks you to describe the following terms with examples of relevant entities from the system, for example, students, activities etc. 1. Supertype and Subtype 2. Disjoint and Overlapping Discriminator 3. Total and Partial Completeness 4. Attribute Inheritance
In this project you will be provided a set of specifications to create an entity-relationship diagram...
In this project you will be provided a set of specifications to create an entity-relationship diagram and design accompanying table layout using sound relational modeling concepts and practices. The relationships between the entities and the attributes for the entities will be identified and described. This database will provide the foundation for the follow-on project. The following paragraphs provide the background and summary of the business requirements. You are a database consultant with Premier Software, LLC and have been assigned to...
What role does the entity-relationship (ER) diagram play in the database design process? Discuss the different...
What role does the entity-relationship (ER) diagram play in the database design process? Discuss the different types of information represented in the ER diagram and the symbols used to represent them. How would you approach the diagramming process?
business rules and entity-relationship diagram insurance, invoice, patient, appointment, employee
business rules and entity-relationship diagram insurance, invoice, patient, appointment, employee
create an entity relationship diagram to describe the data requirements of the system. Your client is...
create an entity relationship diagram to describe the data requirements of the system. Your client is a local real estate company that wants to automate some of their processes. Here is how some of the business is described: - In a real estate transaction, there is a buyer, a seller, a property, a purchase agreement and a real estate agent - A seller may have one or more properties to sell - A buyer wants to buy only one property...
Create an entity relationship diagram to describe the data requirements of the system. Here is how...
Create an entity relationship diagram to describe the data requirements of the system. Here is how some of the business is described: - In a real estate transaction, there is a buyer, a seller, a property, a purchase agreement and a real estate agent - A seller may have one or more properties to sell - A buyer wants to buy only one property - A purchase agreement is between the seller and the buyer, and only for one property...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT