Conceptual Data Modeling Using Entities & Relationships

Slides:



Advertisements
Similar presentations
the Entity-Relationship (ER) Model
Advertisements

Conceptual Data Modeling: ER
Chapter 31 Chapter 3 Data Modeling Using the Entity-Relationship 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.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Conceptual Models Agenda - Steps in the design of a DB - Need for conceptual models - The Entity-Relationship Model (ER-Model)
Copyright © 2007 Ramez Elmasr and Shamkant B. Navathei Week 3 Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model.
ENTITY RELATIONSHIP DATA MODEL ELIZABETH GEORGE. INTRODUCTION Architect Aeronautical engineers Computer architects Traffic engineers.
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
CS 405G Introduction to Database Systems
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
Data Modeling Using the Entity-Relationship Model
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 Data Modeling Using the Entity-Relationship (ER) Model.
the Entity-Relationship Model
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Entity-Relationship (ER) Data Model 概念資料模式 (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 4)
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 2: Representing Information with Data Models The lecture notes.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Data Modeling Using the Entity-Relationship
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.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Data Modeling Using the Entity- Relationship (ER) 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:
CS 405G: Introduction to Database Systems Lecture 2 : Database Design I.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Continued)
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Entity-Relationship Model Chapter 3 II COSC 457 Sungchul Hong.
Data Modeling Using the Entity-Relationship (ER) Data Model (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
Copyright © 2007 Ramez Elmasr and Shamkant B. Navathei Slide 3- 1.
Data Modelling Using Entity-Relationship (ER) Model
Database Systems – ER Diagrams EXAMPLE COMPANY DATABASE Requirements of the Company (oversimplified to illustrate) The company is organized into DEPARTMENTs.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Data Modeling Using the Entity-Relationship (ER) Data Model.
Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 3: 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.
Conceptual Modelling The Entity-Relationship (ER) Model The ER diagram Data Modelling.
Example COMPANY Database
Chapter 7 Data Modeling Using the Entity-Relationship (ER) Model
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Lecture # 16 July 26,2012 Data Modeling using the Entity Relationship.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Data Modeling Using the Entity- Relationship (ER) Model
Comp 1100 Entity-Relationship (ER) Model
Databases (CS507) CHAPTER 7.
Chapter 3 Data Modeling Using the Entity-Relationship Model
CS4222 Principles of Database System
Data Modeling Using the Entity- Relationship (ER) Model
Database Management Systems
Entity- Relationship (ER) Model
ER model Ashima Wadhwa.
Entity-Relationship Model
Entity Relationship Model
Relational Database Design by ER- and EERR-to-Relational Mapping
Relational Database Design by ER-to-Relational Mapping
Lecture3: Data Modeling Using the Entity-Relationship Model.
بسم الله الرحمن الرحيم.
Entity-Relationship Modeling
Entity-Relationship Modeling "Extended"
Initial Design of Entity Types: EMPLOYEE, DEPARTMENT, PROJECT, DEPENDENT Gender.
376a. Database Design Dept. of Computer Science Vassar College
Mapping an ERD to a Relational Database
Entity Relation Model Tingting Zhang.
Entity-Relationship Modeling "Extended"
Entity-Relationship Modeling "Extended"
Presentation transcript:

Conceptual Data Modeling Using Entities & Relationships

High Level Conceptual Data Models Conceptual Design is a important phase in designing successful database applications Entity Relationship Model is the popular high level conceptual data model Object Modelling is also gaining the importance – Unified Modelling Language

A Sample Database Application Considering Company as a Mini world Problem we need to design the Database. Company Database consists of: Company Info Employee Info Project Info The Formulated Requirements are: The company is organized into departments. Each department has a unique name, a unique number, and a particular employee who manages the department. We keep track of the start date when that employee began managing the department. A department may have several location A department controls a number of projects, each of which has a unique name, a unique number, and a single location We store each employee’s name, Social Security number, address, salary, sex (gender), and birth date. An employee is assigned to one department, but may work on several projects, which are not necessarily controlled by the same department. We keep track of the current number of hours per week that an employee works on each project. We also keep track of the direct supervisor of each employee (who is another employee). We want to keep track of the dependents of each employee for insurance purposes

A Sample Database Application

Entity Types, Entity Sets, Attributes & Keys Entities and Attributes The basic object that the ER model represents is an Entity – Physical or Conceptual Existence Each Entity has Attributes – Particular Properties Types of Attributes Simple Vs Composite Single Vs Multi valued Stored Vs Derived NULL Values Composite Attributes

Entity Types, Entity Sets, Attributes & Keys Entity Types, Entity Sets, Keys, and Value Sets An entity type defines a collection (or set) of entities that have the same attributes The collection of all entities of a particular entity type in the database at any point in time is called an entity set Key Attributes of an Entity Type Uniqueness constraint - key attribute Weak Entity Value Sets of Attribute Mathematically, an attribute A of entity set E whose value set is V can be defined as a function from E to the power set P(V) of V -- A : E → P(V) [Entity Set] Employee (Name, Age, Salary..) E1 – [John Smith, 55, 80k] E2 – [Fred Brown, 50, 60k] [Entity Set] Department (Name, Location, Manager..) D1 – [Finance, Delhi, John Smith] D2 – [Sales, Hubballi, Fred Brown]

Conceptual Design of COMPANY Database Department, Project, Employee and Dependents – Entity Types

Relationship Types, Relationship Sets, Roles and Structural Constraints Relationship Types, Sets, and Instances A relationship type R among n entity types E1, E2, ..., En defines a set of associations —or a relationship set Mathematically, the relationship set R is a set of relationship instances ri, where each ri associates n individual entities (e1,e2,...,en) Relationship Degree, Role Names, and Recursive Relationships Degree of a Relationship Type Binary and Ternary Degree The degree of a relationship type is the number of participating entity type

Relationship Types, Relationship Sets, Roles and Structural Constraints Relationship as Attribute Role Names and Recursive Relationships Cardinality Ratios for Binary Relationships Participation Constraints and Existence Dependencies

Weak Entity Types The Entity Type that doesn’t have any key attribute - Weak Entity Strong Entity Type & Identifying Relationship A weak entity type normally has a partial key Redefining the ER Diagram – Company Database MANAGES, a 1:1 relationship type between EMPLOYEE and DEPARTMENT WORKS_FOR, a 1:N relationship type between DEPARTMENT and EMPLOYEE. Both participations are total CONTROLS, a 1:N relationship type between DEPARTMENT and PROJECT SUPERVISION, a 1:N relationship type between EMPLOYEE WORKS_ON, determined to be an M:N relationship type with attribute Hours DEPENDENTS_OF, a 1:N relationship type between EMPLOYEE and DEPENDENT

ER Diagram

Thank You!!!