Entity Relationship Model

Slides:



Advertisements
Similar presentations
Chapter 6: Entity-Relationship Model (part I)
Advertisements

Developing ER-Diagram
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.
Systems Development Life Cycle
Text-Book Chapters (7 and 8) Entity-Relationship Model
Lesson-19 Data Modeling and Analysis
CSCI 242 Relational Data Modeling Copyright 2011, David C. Roberts, all rights reserved.
APPENDIX C DESIGNING DATABASES
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
CONCEPTS OF E-R MODEL. CONTENTS Entity Attributes Data Value Entity Types Types of Entity Types Relationships Relationship Constraints.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
CSE 441: Systems Analysis & Design
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
G057 - Lecture 02 Introduction To Database System Concepts Mr C Johnston ICT Teacher
Database Design Principles – Lecture 3
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 4 Domain Classes.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Data Modeling with ERD BUS 782. Entities An entity is a person, place, object, event, or concept in the user environment about which the organization.
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.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Study Objectives Understand concepts of data modeling and its purpose Learn how relationships.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
 DEFINE THE ENTITY  IDENTIFY THE ENTITY TYPES AND SETS OF ENTITY  EXPLAIN THE ATTRIBUTE AND A VALUE SET  EXPLAIN E-R MODEL EXPLAIN THE FOLLOWING RELATIONSHIP.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Chapter 2: Entity-Relationship Model
Entity Relationship (E-R) Model
DATA MODELING AND DATABASE DESIGN
Entity/Relationship Modelling
Data Modeling Using the ERD
Let try to identify the conectivity of these entity relationship
Entity-Relationship Model
Entity-Relationship Model
Entity Relationship Model
Databases Chapter 16.
© 2014 by McGraw-Hill Education. This is proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
DESIGNING DATABASE APPLICATIONS
Entity-Relationship Model
Chapter 2: Entity-Relationship Model
Database Design – Lecture 4
ER Diagram Practical Example
Mr C Johnston ICT Teacher
Lecture on Data Modeling and Analysis
ER MODEL Lecture 3.
CS 174: Server-Side Web Programming February 12 Class Meeting
Entity-Relationship Model
Data Modeling with Entity Relationship Diagrams (Cont.)
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Bookstore DB Requirements
Session 2 Welcome: The fifth learning sequence
Database Modeling using Entity Relationship Model (E-R Model)
Chapter 3: Modeling Data in the Organization
Entity-Relationship Diagram (ERD)
Entity Relation Model Tingting Zhang.
Database Management system
ER MODELING Instructor: SAMIA ARSHAD
DATA MODELING AND DATABASE DESIGN
Presentation transcript:

Entity Relationship Model Introduction:- The E-R model was introduced by P.P. Chen not only E-R model but also corresponding diagramming techniques. In a database management system (DBMS), a group of similar information or data, which is of interest to an organization is called an entity. Components of E-R Models:- The E-R model consist of the following major components: a) Entity b) Attributes c) Relationships d) Key attributes

Entity:- An entity is a class of persons, places, objects, events or concepts about which we need to collect and store data Persons:- Employee, customer, student, supplier etc. Place:- Branch office, Building, Room etc. Objects:- Book, machine, vehicle etc. Events:- Sale, Reservation, Registration, Order etc. Concepts:- Qualification, account, course, stock etc. The instance of an entity is a single occurrences of that entity. Example:- The entity EMPLOYEE may have multiple instances or occurrences such as Raj, Mohan, Shiva, etc.

Entity Set :- An entity set is the collection of entities of the same type Example: the set of all employees of an organization can be called as the entity set employee. The set of all persons who are customer at a given bank, can be called as the entity set Customer Attributes:- Each Entity can have a number of characteristics. The characteristics of an entity are called attributes Example:-an entity, say client, can have characteristics like Name address, phone number, balance due etc. Some attributes can be logically grouped into super attributes called compound attribute. Example:- An Employee’s name is a compound attribute consisting of first _name, middle_ name, and last_ name

Relationship:- There types of relationships exist among entities these are; One-to-one One-to-many Many-to many One-to one relationship(1:1):-Relationship is an association only between two entities. Example: University each department has only one head of the department this is shows one-to-one relationship between department and the person as head. Department Person

One-to-many Relationship(1:M):- When one entity is related to more than one entity. Example:-father may have many children but a child has one father. Another example two entity set namely courses and teacher. If assume that more than one course is taught by one teacher. Then relationship is one-to-many between teacher and courses. Father Children Teacher courses 1:M Relationships example Many-to-many relationship (M:M):- A entities that may have relationship among each other Example:-one customer may buy many items and one item may be bought by many customers. Another example is that a student can take many courses in a university, and many students can register for a given course. Customers Items Students Courses M:M Relationship example

Key Attribute:- SYMBOLS OF E-R MODEL: The key attribute is an attribute that uniquely identifies an entity in the entity set. Example:- Employee_ code can be the key attribute for the entity set employee because it uniquely identifies each employee entity SYMBOLS OF E-R MODEL: E-R modeling use the following symbols: Name Symbol Meaning Representing entity sets Rectangle Representing attributes Oval Representing relation ship among entity sets Diamond Links attributes to entity sets and entity sets to relationship Line

ERD:- Attributes Cust_ name Cust_ No Date Acc_ no Balance Customer Cust_ Acct Customer Account State City Entity sets Entity_ Relationship Diagram for customer account

E-R diagram:- Customer _name Customer _State Amount Loan_ number Customer _id Customer _City borrower Loan Customer E-R diagram corresponding to customer and loan

Strong and weak Entities: There are two types of entities namely, dependent entities also called weak entities and independent entities also called strong entities or regular entities. A weak entity set does not have sufficient attributes to from a primary key A weak entity set type is represented by a double outline rectangle Example:-Consider an entity set type marks which represents the marks obtained by a students. Now the existence of entity type student Example:- Suppose a student say ‘Swati” Can have Many instances of marks say Eng_ marks, Sci_ marks, Maths_ marks etc. related to it. If the instance “Swati” is deleted, than all the entity marks dependent upon Swati.

Student Marks Marks is dependent (weak) entity that is dependent on entity student Strong Entity:- An entity set which has a primary key is termed as a strong entity set. Example:- the entity employee and student are strong entity because they have the primary keys Emp_no and Adm_no. Adm_no Emp _no Employee Student