Entity/Relationship Model

Slides:



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

Conceptual Design using the Entity-Relationship Model
The Entity-Relationship Model Jianlin Feng School of Software SUN YAT-SEN UNIVERSITY courtesy of Joe Hellerstein for some slides.
Text-Book Chapters (7 and 8) Entity-Relationship Model
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
CS157A Lecture 3 ER Diagram Prof. Sin-Min Lee Department of Computer Science San Jose State University.
Databases Revision.
Entity-Relationship Data Model CS 157A Professor Sin-Min Lee Student: Yen-Chu Pan.
1–1 The E-R Model Prof. Sin-Min Lee Department of Computer Science.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
Chapter 2: Entity-Relationship Model (Continued)
Entity-Relationship Model
Concepts and Terminology Introduction to Database.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Chapter 7 Database Design and The E–R Model. 2 Goals n Facilitate DB design and represent the overall logical structure of the DB. n Definition Entities.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 7: Entity-Relationship.
Entity-Relationship Model Using High-Level Conceptual Data Models for Database Design Entity Types, Sets, Attributes and Keys Relationship Types, Sets,
Entity – Relationship Model (E-R Model)
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Chapter 2 : Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of.
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
 Entity-relationship models (ERM) Entity-relationship models (ERM)  Simple E-R Diagram Simple E-R Diagram  Weak Entity Weak Entity  Strong Entity.
ITTelkom Entity Relationship Diagram (1) CS2343 Perancangan Basisdata Relasional.
UNIT_2 1 DATABASE MANAGEMENT SYSTEM[DBMS] [Unit: 2] Prepared By Lavlesh Pandit SPCE MCA, Visnagar.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan Lecture-03 Introduction –Data Models Lectured by, Jesmin Akhter.
Databases Illuminated Chapter 3 The Entity Relationship Model.
ICOM 5016 – Introduction to Database Systems Lecture 5 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
Computing & Information Sciences Kansas State University Friday, 26 Sep 2008CIS 560: Database System Concepts Lecture 13 of 42 Friday, 26 September 2008.
Data Modeling Using the Entity-Relationship (ER) Data Model.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
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.
1 Entity Relationship Diagram. ER proposed by Peter Chen ER diagram is widely used in database design Represent conceptual level of a database.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
Chapter 2: Entity-Relationship Model. 3.2 Chapter 2: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity.
©Silberschatz, Korth and Sudarshan7.1Database System Concepts - 6 th Edition Chapter 7: Entity-Relationship Model.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 7: Entity-Relationship.
Database System Concepts, 7 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Module 4: Overview of.
Topic 3: ER – Entity Relationship Model (ERM) 6/12/
IT 5433 LM2 ER & EER Model. Learning Objectives: Explain importance of data modeling Define and use the entity-relationship model Define E/R terms Describe.
Entity-Relationship Data Model
Chapter 2: Entity-Relationship Model
COP Introduction to Database Structures
Contents Design Process Modeling Constraints E-R Diagram Design Issues
Entity-Relationship Model
Entity-Relationship Model
Entity Relationship Model
Entity-Relationship Model
Chapter 2: Entity-Relationship Model
Chapter 7: Entity-Relationship Model
Chapter 7 Entity-Relationship Model
Entity-Relationship Model
Outline of the ER Model By S.Saha
CSCI-100 Introduction to Computing
CS 174: Server-Side Web Programming February 12 Class Meeting
Chapter 2: Entity-Relationship Model
Entity Relationship Diagrams
Information Systems CS-507 Lecture 25
Module 4: Overview of Database Design Using the E-R Model
Entity-Relationship Model
Session 2 Welcome: The fifth learning sequence
Database Modeling using Entity Relationship Model (E-R Model)
Chapter 7: Entity-Relationship Model
logical design for relational database
Chapter 7: Entity-Relationship Model
Entity-Relationship Diagram (ERD)
Entity Relation Model Tingting Zhang.
Chapter 2: Entity-Relationship Model
ER MODELING Instructor: SAMIA ARSHAD
Entity-Relationship Data Model
Presentation transcript:

Entity/Relationship Model Recitation

The E/R Data Model Data Model: framework for organizing and interpreting data Useful in mapping the meanings and interactions of real-world enterprises onto a conceptual schema Employs three basic concepts: entity sets relationship sets attributes

Entity Sets An object in the real world, distinguishable from all other objects e.g. with a unique identifier such as an id An entity set is a set of entities of the same type that share the same properties, or attributes e.g. instructor, student Instructor 98988 Tanaka 12345 Shankar 00128 Zhang 76543 Brown 76653 Aoi 23121 Chavez 44553 Peltier

Relationship Sets Relationship - an association among several entities. For example, we can define a relationship advisor that associates an instructor with a student. Relational Database: a database structured to recognize relations among stored items of information.

Relationship Sets Relationship - an association among several entities. For example, we can define a relationship advisor that associates an instructor with a student. Relationship set - a set of relationships of the same type Types of Relationship Sets binary – involves 2 entity sets n-ary – more than 2 entity sets Most of the relationship sets in a database system are binary (involves two entity sets). Occasionally, however, relationship sets involve more than two entity sets i.e. n-ary relationship sets

Attributes An attribute of an entity set is a function that maps from the entity set into a domain Since an entity set may have several attributes, each entity can be described by a set of (attribute, data value) pairs, one pair for each attribute of the entity set. E.g. A particular instructor entity may be described by id might be the set of all text the set {(ID, 76766), (name, Stein), (dept_name, CS)}

Entity-Relationship Diagrams Express the overall logical structure of a database graphically.

Entity-Relationship Diagrams Express the overall logical structure of a database graphically. E-R diagrams are simple and clear Basic structure: Rectangles divided into two parts Diamonds represent relationship sets Undivided rectangles represent the attributes of a relationship Lines link entity sets to relationship sets Dashed lines link attributes of a relationship set to the relationship set

Entity-Relationship Diagrams

Relationship Set Keys super key - the combination of fields by which the row is uniquely identified candidate key - super key from which you cannot remove any fields primary key - a column or a combination of columns that uniquely identify a record. Only one candidate key can be primary key

Relationship Set Keys super key - the combination of fields by which the row is uniquely identified candidate key - super key from which you cannot remove any fields

Relationship Set Keys super key - the combination of fields by which the row is uniquely identified candidate key - super key from which you cannot remove any fields primary key - a column or a combination of columns that uniquely identify a record. Only one candidate key can be primary key

Existence Dependencies and Weak Entity Sets Weak Entity Sets – their existence depends on a dominant set No super keys, use discriminators (… pno) instead Loan is dominant in Loan_Pmt Payment is subordinate in Loan_Pmt Payment is existence dependent on Loan

Participation Constraints Total - every entity in E participates in at least one relationship in R Partial - only some entities in E participate in relationships in R For example, we expect every student entity to be related to at least one instructor through the advisor relationship. Therefore the participation of student in the relationship set advisor is total. In contrast, an instructor need not advise any students. Hence, it is possible that only some of the instructor entities are related to the student entity set through the advisor relationship, and the participation of instructor in the advisor relationship set is therefore partial.