Chapter Two ( Database Design) Objectives Learn how to design a DBMS Introduction to Data Models Entity-Relationship Data Models.

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.
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
Databases Revision.
Database Design (Data Modeling) DCO11310 Database Systems and Design By Rose Chang.
--The Entity Relationship Model(1)--1 The Entity Relationship Model.
Modeling Data The Entity Relationship Model (ER) For Database Design.
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.
Chapter 3: Data Modeling
Entity-Relationship (E-R) Model
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Chapter 3 Data Modeling Fundamentals of Database Management Systems by
Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall.
Entity/Relationship Modelling
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
Entity-Relationship modeling Transparencies
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.
Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 2: Representing Information with Data Models The lecture notes.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Entity-Relationship Model Ch. 3
Entity Relationship Modeling
Fundamentals of Database Management Systems, 2nd ed
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
PLUG IT IN 3 Fundamentals of Relational Database Operations.
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.
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.
1 CSE 2337 Introduction to Data Management Textbook: Chapter 1.
CS 405G: Introduction to Database Systems Lecture 2 : Database Design I.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
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.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
 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.
ITTelkom Entity Relationship Diagram (1) CS2343 Perancangan Basisdata Relasional.
Databases Illuminated Chapter 3 The Entity Relationship Model.
Chapter Three ( Relational Data Model) Objectives Introduction to Relational Data Models. Advantages of Relational Data Models. Restriction of Relational.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
INTRODUCTION TO DATA MODELING CS 260 Database Systems.
Entity/Relationship Modelling. Entity Relationship Modelling In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
IS 312: Information Systems for Business Discussion Chapter 3.
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.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Appendix H: The Semantic Object Model.
Data Modeling AND ER MODELS.
Data Modeling and Entity-Relationship Model I
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
Chapter Two Database Design (ER Model) Objectives: ER model Type of relationships Role in a relation Concept of Weak entities.
COP Introduction to Database Structures
Entity-Relationship Model
Order Database – ER Diagram
Presentation transcript:

Chapter Two ( Database Design) Objectives Learn how to design a DBMS Introduction to Data Models Entity-Relationship Data Models

Design a DBMS Entity Relationship (ER) Model

3 Entity-Relationship Model (ER-Model) Purpose of ER Model is to allow the description of an enterprise to be written without the attention to the efficiency or the physical design.

4 Entity-Relationship Model (ER-Model) A set of basic objects called Entity, and a set of Relationships among objects (Entities)

5 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 needs not be disjoint (Faculty vs Student)

6 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

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

8 Practice: Identify entity sets in your video store.

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

10 Practice: Identify the relationships among the entities in your video store project.

11 Functionality (Type 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

12 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

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

14 Practice: Identify the types of relationships in your video store project.

15 Entity Relationship Diagram Rectangular: Entity sets Circles: Attributes Diamonds: Relationship sets 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 semantic Info. In the relationship sets (functionality among entities) 3. Define the value sets of attributes (Domain) 4. Organize data into Entity/Relationships Diagram

18 Practice: Design your Database for the video store using ER Model.