Presentation is loading. Please wait.

Presentation is loading. Please wait.

ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.

Similar presentations


Presentation on theme: "ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI."— Presentation transcript:

1 ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI

2 ER Diagrams Entity Relationship Attributes

3 Some other symbols for ER- Diagrams Multivalued attributes

4 Some other symbols for ER- Diagrams

5 Weak entity: ◦An entity that depends on another entity Key attribute: o A key attribute is the unique, distinguishing characteristic of the entity

6 Some other symbols for ER- Diagrams Multivalued attribute: A multivalued attribute can have more than one value. For example, an employee entity can have multiple skill values. Derived attribute: A derived attribute is based on another attribute. For example, an employee's monthly salary is based on the employee's annual salary.

7 Some other symbols for ER- Diagrams Composite attribute: ◦An attribute that has its own attributes.

8 Relationships in ER-Diagrams There are three types of relationships: 1.Binary relationship 2.Recursive relationship 3.Ternary relationship

9 Binary relationships ◦Relationship between two entities ◦Cardinality ◦It has further 3 types: 1.One to one relationship 2.One to many relationship 3.Many to many relationship

10 Binary relationships 1- One to one relationship This relationship seems rare in this world

11 Binary relationships One to many relationship: It reflects business rule in which one entity is related to many number of other entity.

12 Binary relationships Many to many relationship: Many entities have relationship to many other entities

13 Recursive relationship When an entity has relationship with its own.

14 Ternary relationship Relationship pf degree three is called ternary relationship

15 Participation Constraints in ER- Diagrams Total Participation: Each entity in the entity is involved in the relationship. Total participation is represented by double lines. Partial participation: Not all entities are involved in the relation ship. Partial participation is represented by single line.

16


Download ppt "ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI."

Similar presentations


Ads by Google