Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

Entity Relationship Diagrams
Chapter 6: Entity-Relationship Model (part I)
Entity-Relationship (ER) Modeling
The Entity-Relationship Model
Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
Text-Book Chapters (7 and 8) Entity-Relationship Model
1 The Entity-Relationship Model Chapter 2. 2 Overview of Database Design  Conceptual design: (ER Model is used at this stage.) –What are the entities.
System Analysis - Data Modeling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Entity-Relationship Model and Diagrams (continued)
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Systems Analysis and Design in a Changing World, 6th Edition
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Data Modeling Using the Entity-Relationship Model
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
1 © Prentice Hall, 2002 CMIS564: E/R Modeling Dr. Bordoloi Based on Chapter 3; Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
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: Modeling Data in the Organization
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
Instructor :Huda Al-Omair
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Chapter 5 Entity Relationship (ER) Modelling
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003, 2004.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
CS 370 Database Systems Lecture 9 The Relational model.
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:
4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Relationship Degree Indicates number of entities or participants.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
CS 405G: Introduction to Database Systems Lecture 2 : Database Design I.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
Data Modelling Using Entity-Relationship (ER) Model
Keys for Relationship Sets The combination of primary keys of the participating entity sets forms a super key of a relationship set. – (customer-id, account-number)
advanced data modeling
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
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.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Data Modeling and the Entity-Relationship Model CS 475 Lecture Notes.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Entity Relationship (E-R) Model
Data Modeling Using the Entity- Relationship (ER) Model
Entity Relationship Modeling
Entity-Relationship Model
Chapter 3 Data Modeling Using the Entity-Relationship Model
Entity- Relationship (ER) Model
COP Introduction to Database Structures
Entity-Relationship Model
TMC2034 Database Concept and Design
Chapter -3- Data Modeling Using the Entity-Relationship Model
Lecture3: Data Modeling Using the Entity-Relationship Model.
Entity-Relationship Model and Diagrams (continued)
Entity – Relationship Model
Chapter 2 Modeling Data in the Organization
Database Modeling using Entity Relationship Model (E-R Model)
Chapter 4 Entity Relationship (ER) Modeling
Question Which of the following plays an important role in representing information about the real world in a database? Explain briefly 1)DDL.
Presentation transcript:

Entity Relationship Model Chapter 6

Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier, etc. Attribute A description of an entity. Eg. Worker has name, worker number, department, address, etc. Relationship

Example of an Attribute

Type of Attribute Simple Attributes vs. Composite Attributes

Solitary Attribute vs. Multiple Value Attribute

Derived Attribute

Attribute Domain & Key Set of values for an attribute Character Numeric Date Attributes with one key/ two keys

Relationship Link between entities. Types of relationship: Unary Binary Ternary

Unary

Binary

Ternary

Cardinality One to one relationship (1:1) One to many relationship (1:M) Many to many relationship (M:N)

1:1 Relationship

1:M Relationship

M:N Relationship

Relationship Participation Compulsory Optional

Guidelines and Steps in ER Model No system environment insertion.

Wrap-up on ERD Determine entities, relationship. Determine attributes. Determine attributes related to relationship (if any). Choose the keys for the entities. Determine the domain for each attribute. Combine the diagrams. Check and refine.

Tutorial 1 Prepare an ERD for the following case study: A university database contains information about lecturers (identified by staff number) and courses (identified by course code). Lecturers teach courses; each of the following situations concerns the Teaches relationship set. For each situation, create an Entity Relationship (ER) diagram that describes it (assuming no further constraints hold). 1. Lecturers can teach the same course in several semesters, and each course offering must be recorded. 2. Every lecturer must teach some course. 3. Every lecturer teaches exactly one course (no more, no less). 4. Every lecturer teaches exactly one course (no more, no less), and every course must be taught by some lecturer. 5. Now suppose that certain courses can be taught by a team of lecturers jointly, but it is possible that no one lecturer in a team can teach the course. Model this situation, introducing additional entity sets and relationship sets if necessary.

-Thank You-