Entity relation(1)
-
Upload
loving-mishaa -
Category
Software
-
view
462 -
download
2
Transcript of Entity relation(1)
![Page 1: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/1.jpg)
History of ER (entity relationship) Diagram:
Peter Chen developed ERDs in 1976. Since then Charles Bachman and James Martin have added some slight refinements to the basic ERD principles.
![Page 2: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/2.jpg)
ER (entity relationship) Diagram:
ER Model is represented by means of an ER diagram. Any object, for example, entities, attributes of an entity, relationship sets, and attributes of relationship sets, can be represented with the help of an ER diagram.
![Page 3: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/3.jpg)
Why we design ER diagrams?
![Page 4: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/4.jpg)
Why we design ER diagrams?
The software developer/analyst or database designer/analyst gains a better understanding of the information to be contained in the database through the process of constructing the ERD.The ERD serves as a documenting tool.
![Page 5: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/5.jpg)
ER (entity relationship) Diagram:
There are three basic elements in ER-Diagrams:
Entities are the "things" for which we want to store information. An entity is a person, place, thing or event.
Attributes are the data we want to collect for an entity.
Relationships describe the relations between the entities.
![Page 6: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/6.jpg)
Symbols of ERD
![Page 7: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/7.jpg)
EntityAny object having attributes and their values from real word is entity. Entities are represented by means of rectangles. Rectangles are named with the entity set they represent.
![Page 8: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/8.jpg)
How to represent Entity
![Page 9: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/9.jpg)
RelationshipRelationships are represented by diamond-shaped box. Name of the relationship is written inside the diamond-box. All the entities (rectangles) participating in a relationship, are connected to it by a line.
![Page 10: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/10.jpg)
How to represent Relationship
![Page 11: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/11.jpg)
AttributeAttributes are the properties of entities. Attributes are represented by means of ellipses. Every ellipse represents one attribute and is directly connected to its entity (rectangle).
![Page 12: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/12.jpg)
How to represent Attribute
![Page 13: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/13.jpg)
Composite attributesIf the attributes are composite, they are further divided in a tree like structure. Every node is then connected to its attribute. That is, composite attributes are represented by ellipses that are connected with an ellipse.
![Page 14: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/14.jpg)
Composite Attributes
![Page 15: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/15.jpg)
Derived attributesDerived attributes are depicted by dashed ellipse.
![Page 16: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/16.jpg)
Derived attributes
![Page 17: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/17.jpg)
Multivalued attributes
Multivalued are depicted by double ellipse.
![Page 18: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/18.jpg)
Multivalued attributes
![Page 19: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/19.jpg)
Notations of ER diagram
![Page 20: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/20.jpg)
One to One RelationshipFor example, if each customer in a database is associated with one mailing address.
![Page 21: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/21.jpg)
One to One Relationship
![Page 22: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/22.jpg)
One to many RelationshipFor example, a single customer might place an order for multiple products. The customer is associated with multiple entities, but all those entities have a single connection back to the same customer.
![Page 23: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/23.jpg)
One to many Relationship
![Page 24: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/24.jpg)
Many to many RelationshipFor example, at a company where all call center agents work with multiple customers, each agent is associated with multiple customers, and multiple customers might also be associated with multiple agents.
![Page 25: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/25.jpg)
Many to many Relationship
![Page 26: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/26.jpg)
The phase in which we need to design an ER diagramIn Designing phase we need to design ERDs.
![Page 27: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/27.jpg)
ER diagram of Internet Sales Model
![Page 28: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/28.jpg)
Any Questions ??
![Page 29: Entity relation(1)](https://reader035.fdocuments.in/reader035/viewer/2022070510/58ac9caf1a28ab93348b592f/html5/thumbnails/29.jpg)
Thank you for your attention!