Question

In: Computer Science

Entity Relationship Diagrams are created for a variety of reasons. How would you describe the purpose...

Entity Relationship Diagrams are created for a variety of reasons. How would you describe the purpose of an entity relationship diagram to someone who isn't familiar data warehousing? How would you explain or define the join types, relationships, and primary /foreign keys.
PLS TYPE THE ANSWER

Solutions

Expert Solution

The Entity Relationship Diagram is the diagrammatic representation of a collection of basic objects called entities, along with attributes which define their properties, and of relationships among such entities. it provides a standard and logical way of visualization data.

Basic term related to entity-relationship diagram:

  1. entity: it is an object in the real world that is distinguishable from other objects based on the values of the attributes it possesses.
  2. entity set: it is a collection of entities that have same set of properties.
  3. Attributes: these are units that describe the characteristics of entites.

Type of Entites: There are two types of entites.

  1. Tangible Entites: they are those which exists physically in the real world like student, employee, bank locker etc.
  2. Intangible entities: they are those which exists logically in the real world like software, bank, accounts etc.

Type of Enitity Set: There are two types of entities set

  1. Strong Entity Set: these sets are those which have a key attribute and are not dependent on any other entity set. the ER Diagram represented by

  2. Weak Entity Set: these sets are those which don't have key attribute and are dependent on another strong entity set. the ER Diagram represented by

Types of Attributes: The type of attributes based on different properties are:

  1. Based on number of components:-
    • Simple/atomic attribute: it is attribute those which cannot be divided further. the ER diagram shown below:
    • Composite attribute: it is attribute those can be divided further into two or more simple attributes. the ER diagram shown below:
  2. Based on number of values:-
    • Single-valued attribute: it is attribute are those which can have only value at an instance of time. the ER diagram shown below:
    • Multi-valued attribute: it is attribute are those can have more than one value at instance of time. the ER diagram shown below:
  3. Based on type of Data:-
    • Stored attribute: it is attribute are those whose values are already stored in the database. the ER diagram shown below:
    • Derived attribute: it is attribute are those whose values are computed in runtime using the stored attribute. the ER diagram shown below:
  4. Key attributes:- the key attribute are those which can be identify an entity uniquely in an entity set. the ER diagram shown below:
  5. Non Key attributes: the attributes other than key attributes are non key attributes. the ER diagram shown below:

Relationship: The relationship is associated between two or more entities of same or different entity sets, a set of similar type of realtionship is known as relationship set, the representation of relationship set in ER diagram is shown below:

Every week entity set is related to a strong entity set, the strong entity set is said to be the identifying or owner entity set with respect to the week entity set it is related to and the week entity set said to be existence dependent on the identifying entities set, the relationship between a week entity set and it's corresponding identifying entity set is called identifying relationship, the representation of ER Diagram shown below:

For week entity set, a set of attributes can be used to distinguish a specific entity among all the other entities, this set is called discriminator or partial key the representation of discriminator in ER Diagram shown below:

The key attribute of a week entity set is formed by the combination of the key attribute of the identifying entity set and the discriminator of the week entity set.

Here the example of entity relationship diagram.

We have three entity set student, guardian and teacher where guardian is week entity set which is existence dependent on student entity set, student and teacher are strong entity sets and are related to each other.

For student entity set roll number is key attribute name is composite attribute that can be divided into three parts first name, middle name and last name, ages are derived attribute that can be calculated using do beyond system tapes.

For Guardian entity sets phone number is multivalued attribute, name and phone number form the partial key or discriminator.

For teacher entiry key or discriminator the teacher entity sets teacher ID is a key attribute phone number is a multivalued attribute, teacher and student entity sets are related through the relationship teaches student and guardian entiry sets are related through the relationship has.


Related Solutions

Distinguish between entity relationship diagrams, data flow diagrams, and system flowcharts.
Distinguish between entity relationship diagrams, data flow diagrams, and system flowcharts.
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...
6)         i)          How would you identify entity and relationship types from a user’s requirements specification?         &n
6)         i)          How would you identify entity and relationship types from a user’s requirements specification?             ii)         How would you identify attributes from a user’s requirements specification and then associate the attributes with entity or relationship types?
Describe securities crowdfunding and the background and purpose for which it was created.
Describe securities crowdfunding and the background and purpose for which it was created.
Creativity, Innovation, and Entrepreneurship are closely related concepts and activities. How would you describe the relationship...
Creativity, Innovation, and Entrepreneurship are closely related concepts and activities. How would you describe the relationship between these three concepts and activities? What is the role of innovation in entrepreneurship? What are the three basic types of innovations? Give concrete examples of each type of innovation
How would you describe the relationship between property rights and GDP per capita? Why do you...
How would you describe the relationship between property rights and GDP per capita? Why do you think that relationship exists? Must be at least 150 words
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...
1- Describe, with the aid of diagrams, the relationship between pressure and volume during normal lung...
1- Describe, with the aid of diagrams, the relationship between pressure and volume during normal lung ventilation. 10) 2- Describe, with the aid of diagrams, the structural features of the respiratory tract. Include in your answer a description of how these features contribute to the function of the lung.
How would you assess the relationship between social value and perception? Is there a relationship? Explain.
How would you assess the relationship between social value and perception? Is there a relationship? Explain.
Please show supporting detail and argument 1.How would you describe the relationship between big business and...
Please show supporting detail and argument 1.How would you describe the relationship between big business and workers in the years between 1865 and 1939? What larger effects do you think these conflicts had on American society, and what type of efforts were made to lessen that problem? 2. How did America's role in the world change between 1865 and 1939? How would you explain this change? Finally, what were the advantages and disadvantages of this for the United States, and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT