The Entity-Relationship Model

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
CS34311 Translating ER Schema to Relational Model.
Murali Mani The Relational Model. Murali Mani Why Relational Model? Currently the most widely used Vendors: Oracle, Microsoft, IBM Older models still.
Copyright © 2004 Pearson Education, Inc.. Chapter 3 Data Modeling Using the Entity-Relationship Model.
CS34311 The Entity- Relationship Model. CS34312 Database Design Stages Application Requirements Conceptual Design Logical Design Physical Design Conceptual.
CS34311 The Entity- Relationship Model Part II.. CS34312 Database Design Stages Application Requirements Conceptual Design Logical Design Physical Design.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
1 Data Modelling Which data to include in the database.
Murali Mani The Entity- Relationship Model. Murali Mani Database Design Stages Application Requirements Conceptual Design Logical Design Physical Design.
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,
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
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
ICOM 5016 – Introduction to Database Systems Lecture 4 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
1 Data Modeling : ER Model Lecture Why We Model  We build models of complex systems because we cannot comprehend any such system in its entirety.
Entity-Relationship Model Ch. 3
Database Systems Lecture # 7 8 th Feb, Conceptual and Logical Design Person buys Product name pricenamessn Conceptual Model: Relational Model: (plus.
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.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Entity-Relationship Model Using High-Level Conceptual Data Models for Database Design Entity Types, Sets, Attributes and Keys Relationship Types, Sets,
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:
Chapter 3 Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Databases Illuminated Chapter 3 The Entity Relationship Model.
CS34311 Translating ER Schema to Relational Model.
1 The Entity- Relationship Model Instructor: Mohamed Eltabakh
advanced data modeling
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Data Modeling Using the Entity-Relationship (ER) Data Model.
1 The Entity- Relationship Model Instructor: Mohamed Eltabakh Part-2.
CS34311 The Entity- Relationship Model Part I.. CS34312 Database Design Stages Application Requirements Conceptual Design Logical Design Physical Design.
CS34311 The Entity- Relationship Model Part III..
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.
CS3431-B111 The Entity- Relationship Model Part II. Instructor: Mohamed Eltabakh
CS34311 Translating ER Schema to Relational Model.
The Relational Model Lecture #2 Monday 21 st October 2001.
A short revision on entity- relationship modelling.
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
Comp 1100 Entity-Relationship (ER) Model
Data Modeling Using the ERD
Entity-Relationship Model
Chapter 3 Data Modeling Using the Entity-Relationship Model
Data Modeling Using the Entity- Relationship (ER) Model
Entity Relationship Diagram
ER model Ashima Wadhwa.
Entity-Relationship Model
Tables and Their Characteristics
Entity-Relationship Modelling
Chapter 7 Entity-Relationship Model
Relational Database Design by ER- and EER-to-Relational Mapping
Outline of the ER Model By S.Saha
Entity-Relationship Modeling
Translating ER Schema to Relational Model
Lecture3: Data Modeling Using the Entity-Relationship Model.
Conceptual data modeling
The Entity-Relationship Model
Entity Relationship Diagrams
الفصل الخامس قواعد البيانات Databases
Entity – Relationship Model
Entity-Relationship Modelling
Database Systems Instructor Name: Lecture-9.
Database Modeling using Entity Relationship Model (E-R Model)
Chapter 7: Entity-Relationship Model
ER MODELING Instructor: SAMIA ARSHAD
Relational Database Design by ER-to-Relational Mapping
Presentation transcript:

The Entity-Relationship Model B term 2004: lecture 2 Oct 30, 2003 Murali Mani

Database Design Stages Application Requirements Conceptual Design Conceptual Schema Logical Design Logical Schema Physical Design Physical Schema Oct 30, 2003 Murali Mani

Conceptual Design What is conceptual Design? Why conceptual Design? Concise representation of our DB application requirements Why conceptual Design? Helps us understand our DB application requirements better Helps us come up with a “good” design Oct 30, 2003 Murali Mani

ER Model: Entity Types and Attributes Entity: “Object” Entity Type: “Class” Attribute: property of entities In ER diagrams Entity Type  rectangle Attribute  Oval. Entity Type Student with attributes (sNumber, sName, sAge) Oct 30, 2003 Murali Mani

ER Model: Complex Attributes Composite Attribute: address Multivalued Attribute: major Student entity type with all its attributes Oct 30, 2003 Murali Mani

ER Model: Relationship Types Relationship: Association between entities Relationship Type: class of relationships Represented as diamond Relationship type HasTaken to represent Courses taken by Students Oct 30, 2003 Murali Mani

ER Model: Relationship Types with Attributes Relationship HasTaken has an attribute grade which is the grade the Student obtained for the Course Oct 30, 2003 Murali Mani

N-ary relationship type Ternary relationship type: Supplier supplies Products to Consumers Note: This is NOT equivalent to 2 binary relationships Oct 30, 2003 Murali Mani

Recursive Relationship Types and Roles Part-Subpart recursive relationship type Roles: There are Parts that play the role of superPart There are Parts that play the role of subPart Oct 30, 2003 Murali Mani

ER Model: Key Constraints Underline the key attribute/attributes Key for Student is sNumber Key for Movie is <title, year> Note: We can represent key for an entity type consists of more than 1 attribute (eg: Movie) We cannot represent multiple keys for an entity type (eg: key for Student can be either sNumber or sName) Oct 30, 2003 Murali Mani

ER Model: Cardinality Constraints Expressed using (min, max) Student can take >= 2 and <= 3 Courses Course can have >= 0 and <= * (infinity) Students Oct 30, 2003 Murali Mani

Cardinality Constraints 1:1 relationship type: A Dept has exactly one Manager, A Person can manage atmost one Dept 1:many (1:n) relationship type: A Person works for exactly one Dept, A Dept can have any number of Persons Oct 30, 2003 Murali Mani

Cardinality Constraints many:many (m:n) relationship type: A Person works for one or more Depts, A Dept can have any number of Persons Oct 30, 2003 Murali Mani

Cardinality Constraints for n-ary relationships A Supplier supplies at least one Product to some Consumer We cannot specify: A Consumer gets a Product from only one Supplier Each Supplier supplies exactly 2 Products Oct 30, 2003 Murali Mani

Cardinality Constraints for Recursive Relationships A Part can be subpart of one superPart A Part can have many subParts A Part can be subpart of many superParts A Part can have many subParts Oct 30, 2003 Murali Mani

An Application Example Courses offered in CS Dept, WPI, in B term What entity types? – Student, Professor, Course, GradStudent Attributes and key constraints for entity types What relationship types? Cardinality for Relationship Types Oct 30, 2003 Murali Mani

Possible Solution Oct 30, 2003 Murali Mani