CONCEPTS OF E-R MODEL. CONTENTS Entity Attributes Data Value Entity Types Types of Entity Types Relationships Relationship Constraints.

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

Conceptual Data Modeling: ER
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Entity Relationship (ER) Modeling
Data Modeling using the Entity-Relationship (ER) Model
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Copyright © 2007 Ramez Elmasr and Shamkant B. Navathei Week 3 Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model.
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
APPENDIX C DESIGNING DATABASES
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Data Modeling Using the Entity-Relationship Model
Data Modeling Using the Entity-Relationship Model
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
Data Modeling Using the Entity-Relationship Model
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model.
the Entity-Relationship Model
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Entities and Attributes
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Chapter 5 Entity–Relationship Modeling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
Dr. Ahmad R. Hadaegh A.R. Hadaegh California State University San Marcos (CSUSM) Page 1 Entity Relational Diagram (ERD) Modeling This particular lecture.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
Entity – Relationship Model (E-R Model)
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
Chapter 3 Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Slide Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Data Modeling Using the Entity-Relationship (ER) Data Model (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
Copyright © 2007 Ramez Elmasr and Shamkant B. Navathei Slide 3- 1.
Data Modelling Using Entity-Relationship (ER) Model
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Entity-Relation Model. E-R Model The Entity-Relationship (ER) model was originally proposed by Peter in 1976 ER model is a conceptual data model that.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Data Modeling Using the Entity-Relationship (ER) Data Model.
Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 3: Data Modeling Using the Entity-Relationship (ER) Data Model
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Conceptual Modelling The Entity-Relationship (ER) Model The ER diagram Data Modelling.
Database -Entity-Relationship Model 2012/03/05.
Chapter 7 Data Modeling Using the Entity-Relationship (ER) Model
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Lecture # 16 July 26,2012 Data Modeling using the Entity Relationship.
Data Modeling Using the Entity- Relationship (ER) Model
Comp 1100 Entity-Relationship (ER) Model
Data Modeling Using the Entity- Relationship (ER) Model
CS4222 Principles of Database System
Data Modeling Using the Entity- Relationship (ER) Model
Database Management Systems
ER model Ashima Wadhwa.
Entity-Relationship Model
Entity Relationship Model
Chapter -3- Data Modeling Using the Entity-Relationship Model
بسم الله الرحمن الرحيم.
Entity Relationship Diagrams
Initial Design of Entity Types: EMPLOYEE, DEPARTMENT, PROJECT, DEPENDENT Gender.
Database Modeling using Entity Relationship Model (E-R Model)
Entity-Relationship Diagram (ERD)
Entity Relation Model Tingting Zhang.
ER MODELING Instructor: SAMIA ARSHAD
Presentation transcript:

CONCEPTS OF E-R MODEL

CONTENTS Entity Attributes Data Value Entity Types Types of Entity Types Relationships Relationship Constraints

Entity An entity is a person, place, thing, event or concept about which information is stored in database. e.g. student, supplier, part, car, bank, university, some deal, some event etc. Types of Entity : Entities are of two types :  Tangible Entity  Intangible Entity

Entity Contd.. Tangible Entity : An entity which has physical existance is called tangible entity. e.g. parts, supplier etc. Intangible Entity : It is one which does not exist physically. e.g. Some deal, some event etc.

Attributes Attribute gives the characteristics of the entity. e.g. Attributes of a student can be Roll No., Name, Class etc. The attributes of a car can be Regn. No., Color, Model etc. An attribute is also called data elements or field or data item.

Attributes Contd.. Types of Attributes : Single valued and multi valued attributes: An attribute which have a single value for particular entity is known as single valued attributes. For example age of employee. An attribute which have a set of values for the same entity is known as multi valued attributes. For example colors for a car.

Attributes Contd.. Composite versus Simple attributes: The attributes which can be divided into smaller independent attribute called composite attributes. For example address of the employee entity can be divided into house no, city, state, pin etc. The attributes which can not be divided into smaller subparts are called simple or atomic attributes. For example age of employee entity. Data Value A data value is actual data or information contained in each data element.

Attributes Contd.. Stored verses Derived attributes: An attribute which can be derived from another attributes is known as derived attribute. For example age of an employee can be determined from the today’s date and Birthdate. Complex attributes: If an attribute for an entity is built using composite and multi valued attributes, such as attributes is called complex attributes.

Attributes Contd.. For example, If a person can have more than one residence and each residence can have multiple phones, an attribute addressphone for a person entity can be specified as: {addressphhone (phone {(area code, phone number)}, address(selector address(selector number, house number), city, state, pin))} Here {} are used to enclose multivalued attributes and () are used to enclose composite attributes with comma separating individual attributes

For example, If a person can have more than one residence and each residence can have multiple phones, an attribute addressphone for a person entity can be specified as: {addressphhone (phone {(area code, phone number)}, address(selector address(selector number, house number), city, state, pin))} Here {} are used to enclose multivalued attributes and () are used to enclose composite attributes with comma separating individual attributes Attributes Contd..

Data Value It is actual data or information contained in each attribute. e.g. Roll No. can take value Null Value : An attribute has null value if either the value of an attribute is not known or not applicable to that entity. e.g. if a person does not have any degree then college degree attribute value will be null.

Entity Types ENTITY TYPE :EMPLOYEE Attributes Name Age Pay E1 (Amit ) E2 (Sunil ) ……………… ………………. An entity type is defined as a collection of entities that have the same attributes. For example employee in a company database. The employee entities share the same attributes, but such entity has its own value for each attributes

Entity Types Contd.. An entity type is represented in ER diagram as a rectangular box enclosing the entity type name. Attribute name is enclosed in ovals and are attached to their entity type by straight lines as shown in following figure: Employee Name AgePay

Types of Entity Types Weak Entity type: An entity type that do not have any key attribute is called weak entity-type. The weak entity type is also called the child entity type or the subordinate entity type. Following symbol is used for weak entity type:

For example : Name SexAge Types of Entity Types Contd..

Strong Entity type: Entity that have key attribute are called strong entity type. The strong entity type is also called regular entity type. For Example: Roll NameSex Student Age

Relationships Relationships which connect entities and represent meaningful dependencies between them. The way in which two or more entity types are related is called relation type. In ER diagram, relationship types are represented by diamond shaped box.

Relationship Constraints There are two types of relationship constraints. 1. Participation Constraints 2. Cardinality Ratio Participation Constraints: It specifies whether the existence of an entity depends on another entity via the relationship type. Total Participation: In total participation every entity in entity set must be depend on another entity.

Relationship Constraints Contd.. Partial Participation: In partial participation, some entities in entity set are depend on another entity. Cardinality Ratio : Cardinality ratio for a binary relationship specifies the number of relationship instances that an entity can participate in a relation set. There are four types of cardinality ratios.

Relationship Constraints Contd.. One to one (1:1) : The relationship between a Department and a Manager is usually one-to-one as shown in figure: Department Manager

Relationship Constraints Contd.. One to many (1:N): The relationship between manager and employee is one- to-many, because there are several employees reporting to the manager as shown in following figure: Employee Manager

Relationship Constraints Contd.. Many to one(N:1): The relationship between Dependent and employee is many to one as shown in following figure: Employee Dependent

Relationship Constraints Contd.. Many to many(M : N) : The relationship between Employee and Project is many to many as shown in following figure: Employee Project

THANKS