Chapter Two Database Design (ER Model) Objectives: ER model Type of relationships Role in a relation Concept of Weak entities.

Slides:



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

Chapter Three Objectives Identification of Keys Application of primary and foreign keys Converting a database design to Relational DB. What is a good DBMS.
Weak Entity Sets An entity set that does not have a primary key is referred to as a weak entity set. The existence of a weak entity set depends on the.
The Entity-Relationship (ER) Model
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Text-Book Chapters (7 and 8) Entity-Relationship Model
Database Design and the E-R Model Chapter 7 [1 of 2]
Pertemuan Entity Relationship Diagram
Databases Revision.
Lecture Eleven Entity-Relationship Modelling
Modeling Data The Entity Relationship Model (ER) For Database Design.
1–1 The E-R Model Prof. Sin-Min Lee Department of Computer Science.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
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.
Entity-Relationship (E-R) Model
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Chapter 3)
Entity/Relationship Modelling
Entity-Relationship modeling Transparencies
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
the Entity-Relationship Model
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Chapter 11 (I) CIS458 Sungchul Hong. Chapter 11 - Objectives How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated.
Entity-Relationship Model Ch. 3
Entity Relationship Modeling
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
ICS 321 Spring 2011 High Level Database Models Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 2/7/20111Lipyeow.
Chapter Two ( Data Model) Objectives Introduction to Data Models What are the Data Models Why they are important Learn how to design a DBMS.
©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.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Entity-Relationship Model Using High-Level Conceptual Data Models for Database Design Entity Types, Sets, Attributes and Keys Relationship Types, Sets,
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced 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.
©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.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
ITTelkom Entity Relationship Diagram (1) CS2343 Perancangan Basisdata Relasional.
Databases Illuminated Chapter 3 The Entity Relationship Model.
Entity Relationship Modeling
Chapter Two ( Database Design) Objectives Learn how to design a DBMS Introduction to Data Models Entity-Relationship Data Models.
Data Modelling Using Entity-Relationship (ER) Model
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
Entity/Relationship Modelling. Entity Relationship Modelling In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes.
IS 312: Information Systems for Business Discussion Chapter 3.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
LECTURE 1: Entity Relationship MODEL. Think before doing it! Like most of the software projects, you need to think before you do something. Before developing.
©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.
April 20022CS3X1 Database Design Entity-relationship modelling John Wordsworth Department of Computer Science The University of Reading
Data Modeling AND ER MODELS.
Database System Concepts, 7 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Module 4: Overview of.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Entity-Relationship Model
Chapter 7: Entity-Relationship Model
Presentation transcript:

Chapter Two Database Design (ER Model) Objectives: ER model Type of relationships Role in a relation Concept of Weak entities

2 Entity-Relationship Model (ER-Model) Purpose of ER Model is to allow the description of the conceptual scheme of an enterprise to be written without the attention to efficiency or physical design that is expected by most other models.

3 Entity-Relationship Model (ER-Model) A set of basic objects called Entity, and a set of Relationships among objects (Entities) Many-to-Many relationship Best Data Model ??

4 Entity and Entity Set: Entity: An object that exists and is distinguishable from other objects Car ? VW? Entity Set: A set of entities of the same type Entity set need not be disjoint (Faculty vs Student)

5 Entity and Entity Set: (Continued) An entity is represented by a set of attributes Student(Name, ID, GPA) Each attribute has a set of permitted values called Domain (value set) ID: positive integer An attribute is a function which maps an entity set into a domain. F(attribute, data value)

6 Entity and Entity Set: (Continued) Examples: (Name, Mary), (ID, 23), … Entity Set: Students Faculty Courses

7 Relation and Relationship Sets: Relationship is an association among two or more entities Faculty and Course Relationship Set: is a set of similar relationships

8 Relation and Relationship Sets: The function that an entity plays in a relationship is called a Role One of the staff is manager Work Staff Staff Manager

9 Functionality (Types of relationships) Association among several entities 1. One_To_One Relationship Each entity in either set has at most one association with the member of the other set Example: Chairand Person Students and Address AB a1b1 a2b2 a3b3 a4

10 Functionality (Continued) 2. One_To_Many Relationship One entity in set one is associated with zero or more entities in set two, but each entity in set two is associated with at most one entity in set one Example: StudentsAddress John84 Main St. Frostburg 12 1 st Street Washington Lori

11 Functionality (Continued) 3. Many_To_Many Relationship No restriction on the either sets of pair of entitles Example: Mark21 1 st Washington 84 Main St. Frostburg Lori62 3 rd Ave Cumberland

12 Relationship Department Offering Course Doctor Attending Physician Consulting Physician Patient 1 NN N

13 Types of Entities: Strong Entity Weak Entity

14 Existence Dependency: If existence of entity ‘a’ depends on the existence of entity ‘b’ a depends on b Example: Account Transaction Weak Entity

15 Entity Relationship Diagram Rectangular: Entity Sets Circles: Attributes Diamonds: Relationships Lines: Attribute to entity set and Entity set to relationship

16 Entity Relationship Diagram Courses Student Student Course Id GPA Name Course Number Title Cr

17 Steps in designing a database using ER Model 1. Identify a. Entity sets b. Relationship sets 2. Identify the attributes for each ES & RS 3. Identify semantic Info. In the relationship sets (functionality among entities) 4. Define the value sets of attributes (types) 5. Organize data into Entity/Relationships Diagram 6. Identify the keys