Docsity

Entity Relationship Modeling, Study Guides, Projects, Research of Relational Database Management Systems (RDBMS)

Partial preview of the text

Download Entity Relationship Modeling and more Study Guides, Projects, Research Relational Database Management Systems (RDBMS) in PDF only on Docsity!

Entity-

Relationship

Modelling

Most of these slides comes from material tie-in to the book Connolly, T. M., & Begg, C.E. (2014) and Lemahieu,W. Broucke, S.V., & Baesens B. (2018).

Concepts of the ER Model

§ Entity types

§ Relationship types

§ Attributes

Examples of Entity Types

Entity Type (Def)

§ Entity type

§ Group of objects with same properties, identified by enterprise as having an independent existence. § E.g.: supplier, student, product or employee

§ Entity occurrence

§ Uniquely identifiable object of an entity type. § E.g.: Deliwines, Best Wines and Ad Fundum are entities from the entity type supplier Supplier

ER diagram of Staff and

Branch entity types

Relationship Types

§ Relationship type

§ Identify important relationships that exit between entity types § In a document, often expressed by a verb § ‘Each member of staff manages one or more rental property’-> Staff Manages PropertyForRent § ‘Each client wishing to let their property owns one or more such properties’ - > PrivateOwner Owns PropertyForRent

Semantic net of Has

relationship type

Diagram representation

§ Shown as a line connecting the

associated entity types

§ Labelled with the name of the relationship

§ Normally a verb or short phrase including a verb (LeaseBy) § In one direction. An arrow indicates the correct direction

§ In UMLS, the first letter of each word is

uppercase e.g Supervises

Relationship Types

§ Degree of a Relationship

§ The number of entity types participating

§ Relationship of degree :

§ Usually 2, e.g Staff Manages PropertyForRent i.e. Manages(Staff,PropertyForRent) § Could be 3 or more, e.g Staff Registers Client at Branch i.e. Registers(Staff, Client,Branch)

Relationship Types (Def)

§ Degree of a Relationship

§ Number of participating entities in relationship.

§ Relationship of degree :

§ two is binary § three is ternary § four is quaternary.

Binary relationship called

POwns

Ternary relationship called

Registers

Relationship Types (Def)

§ Recursive Relationship

§ Relationship type where same entity type participates more than once in different roles.

§ Relationships may be given role names to

indicate purpose that each participating

entity type plays in a relationship.

Recursive relationship called

Supervises with role names