LECTURE 3: ENTITY-RELATIONSHIP MODELING
|
|
- Madlyn Hodges
- 6 years ago
- Views:
Transcription
1 LECTURE 3: ENTITY-RELATIONSHIP MODELING Ref. Chapter11 + Appendix F from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220 : D a t a b a s e F u n d a m e n t a l s
2 Chapter Objectives 2 In this chapter you will learn: How to use Entity Relationship (ER) modeling in database design. The basic concepts associated with the Entity Relationship (ER) model, namely entities, relationships, and attributes.
3 Main Terms 3 Entity. Relationship. Attribute. Key attribute. Relationship constraint: Multiplicity Cardinality participation Strong and weak entities.
4 Entity-Relationship model 4 The Entity-Relationship (ER) model is a popular high-level conceptual data model. The Entity-Relationship Diagram (ERD) is a graphical model for representing the conceptual model for the data. ER model describes data as: Entities. Relationships. Attributes.
5 Example of ER-diagram for company database 5
6 Entity 6 The basic object that the ER model represents is an entity, which is a thing in the real world with an independent existence. An entity may be an object with a physical (or real ) existence (student, car) or it may be an object with a conceptual (or abstract ) existence (company, course). Each entity is shown in ER-model as a rectangle labeled with the name of the entity, which is normally a singular noun. Student
7 Attribute 7 Attributes hold values that describe each entity occurrence and represent the main part of the data stored in the database. For example, a Staff entity may be described by the staffno, name, position, and salary attributes. Each attribute is shown in ER-model as Oval labeled with the name of the attribute. st_name Student
8 Attribute (cont.) 8 Each attribute is associated with a set of values called a domain. For example: a set of integer values for number of (rooms) attribute between 1 and 15. Attributes can be classified as being: Simple or Composite. Single-valued or Multi-valued. Stored or Derived.
9 Simple and Composite attributes 9 Simple attribute: E.g. ID, Salary, Gender Composite attribute: ID Composite attribute indicated with sub ovals. E.g. Name (FirstName, MiddleName, LastName).
10 Simple and Composite attributes(cont.) 10 Example: FirstName St_no MiddleName name LastName DOB Tel_no Area_cd no EX STUDENT
11 Single-valued and Multi-valued attributes 11 Single-valued: The majority of attributes are single-valued. E.g: ID Multi-valued: ID Represent in ER-model as double line oval E.g: colors attribute for a car - {Color} Color
12 Stored and Derived attributes 12 Stored attribute: An attribute that represent a stored value. E.g. Birth_date. Derived attribute: Birth_date Represent in ER-model as dotted line oval. E.g. Age The age value can be determined from the current date and the value of the birth_date of a person, so: age is a derived attribute and birth_date is a stored attribute. Total_cost is derived from quantity*unit_price
13 Stored and Derived attributes (cont.) 13 Some attribute values can be derived from related entities. E.g. an attribute Number_of_employees of a DEPARTMENT entity can be derived by counting the number of employees related to that department. Dept_Name ID name Employee works-on Department Dept_No No_of_employee
14 Key Attributes 14 Candidate key: It cannot contain NULL value. E.g. Each branch has a unique branch number There could be more than one candidate key; if so, we select one of them as the primary key and the other will be an Alternate Key E.g. Staff(Staff_No, NID) Primary key Alternate key (National ID Number)
15 Key Attributes (cont.) 15 Primary key: primary key attribute indicated with underline The choice of Primary Key (PK) for an entity is based on: Attribute length. Minimal number of attributes required. Future certainty of uniqueness. PK s may be simple PK (single attribute) CUSTOMER (custno,.) composite PK (multiple attributes) ORDERLINE (orderno, prodno, quantity, )
16 Drawing Entity and attributes 16 stu_id name dob age student phone address Rectangles represent entities street Oval represent attributes derived attributes use dotted line multi-valued attributes use double line primary key attribute indicated with underline Composite attribute indicated with sub ovals. city
17 17 Lecture1
18 Relationship 18 A relationship type is a set of associations between one or more participating entity types. Each relationship type is given a name that describes its function. E.g. Students Register for Subjects School Has Staff Driver Commits Traffic Offence Customer Orders Product Supplier Supplies Parts To Projects Each Relationship is shown in ER-model as diamond labeled with the name of the relationship. ENTITY Relationship ENTITY
19 Degree of Relationship 19 The degree of a relationship indicates the number of entity types involved in a relationship. Degree of relationship includes: UNARY between entities from one entity set BINARY between entities from two entity sets N-ARY among entities from more than two entity sets
20 Relationship Degree: Unary (Recursive) 20 Unary (Recursive )relationship is a relationship type where the same entity type participates more than once in a different role. Relationships may be given Role names to indicate the purpose that each participating entity type plays in a relationship. Role names can be important for recursive relationships to determine the function of each participant.
21 Relationship Degree: Binary Relationship 21 Binary Relationship is a relationship type between two entity types. E.g. Employee Works for Department
22 Relationship Degree: Binary Relationship(cont.) 22 When two entities are associated through more than one relationship, Role can be used to classify the purpose of each relationship.
23 Relationship Degree: Ternary Relationship 23 Ternary Relationship is a relationship type between three entity types. E.g. Supplying a part to a project by a supplier. Supplier Supply Project Part
24 Attributes on Relationship 24 Relationship types can also have attributes. E.g. Customer Orders a Product quantity is attribute of orders relationship customer orders product E.g. Employee WORKS-ON Project To record the number of hours per week that an employee works on a particular project. The attribute Hours can be included to the WORKS- ON relationship type. Employee quantity works-on Project Hours
25 Constraints on Relationships 25 There are three types of constraint on relationships: Cardinality. Multiplicity. Participation.
26 Constraints on Relationships: Cardinality 26 Cardinality Express the maximum number of relationships an entity can participate in. There are three types of Relationships: one-to-one (1:1) one-to-many (1:M) Many-to-one (M:1) many-to-many (M:N)
27 One-to-One (1:1) Relationships 27 E.g. Professor Manage Department P1 r1 D001 P2 P3 r2 D002 Professor 1 Manage 1 Department Each professor manages at most one department. Each department is managed by only one professor.
28 One-to-Many (1:M) Relationship 28 E.g. Professor teach Section P1 r1 3C01 r2 3C03 P2 r3 3C02 Professor 1 teach M Section Each professor teaches many sections; but each section is taught by only one professor (or at most one professor) Lecture3
29 Many-to-One Relationship (M:1) 29 E.g. Professor work-in Department P1 r1 Com. Science P2 r2 Network P3 r3 Info. Sys Professor M Work-in 1 Department Each professor works in only one Department; but each Department has many professors (many professors work in one department) Lecture3
30 Many-to-Many (M:M) Relationship 30 E.g. Student Enroll-in Course S1 r1 is300 r2 is301 S2 r3 is400 S3 r4 is500 S4 r5 is600 Student M Enroll-in M course Each student can enroll in many courses; and each course can be enrolled by many students. Lecture3
31 Constraints on Relationships: Multiplicity 31 Multiplicity constrains the way that entities are related. Multiplicity is shown in ER-model as (min#, max#) Lecture3
32 Multiplicity in One-to-One (1:1) Relationships 32 E.g. Professor Manage Department P1 r1 D001 P2 P3 r2 D002 Professor 1 Manage (0,1) (1,1) 1 Department Each Professor may manage 0 to 1 department, Each Department should be managed by only one Professor.
33 Multiplicity in One-to-Many (1:M) Relationship 33 E.g. Professor teach Section P1 r1 3C01 r2 3C03 P2 r3 3C02 Professor 1 teach (0,5) (1,1) (0,*) Each Professor may teach 0 to 5 Sections, M Section Each Section should be taught by only one Professor. * = many.. Use it if the number is not specified Lecture3
34 Multiplicity in Many-to-Many (M:M) Relationship 34 E.g. Student Enroll-in Course S1 r1 is300 S2 r2 is301 S3 r3 is400 S4 r4 is500 Student M Enroll-in Each student should enroll in 1 to 7 Courses, Each Course may be enrolled by 0 to 100 students. * = many.. Use it if the number is not specified M (1,7) (0,100) (1,*) (0,*) course Lecture3
35 Constraints on Relationships: Multiplicity 35 A summary of the possible ways that multiplicity constraints can be represented along with a description of the meaning.
36 Constraints on Relationships: Participation 36 Participation constraints determine whether all or only some entities participate in a relationship. Two type of participation: Mandatory (Total) Optional (Partial) Lecture3
37 Constraints on Relationships: Participation 37 Optional (partial) (0:*): if an entity s existence does not require a corresponding entity in a particular relationship. (Not existence-dependent). E.g. An employee may not have a spouse E.g. Not every staff manages a department Optional participation is represented in ER-model by single line. R E Lecture3
38 Constraints on Relationships: Participation 38 Mandatory (total) (1:*) if an entity s existence requires the existence of an associated entity in a particular relationship (existence-dependent). E.g. Every spouse must be that of an employee. E.g. Every department is managed by some staff. Mandatory participation is represented in ER-model by double line. R E Lecture3
39 Examples 39 employee 1 1 has spouse CUSTOMER 1 N place (0,M) (1,1) ORDER STUDENT M (1:M) enrol (0:N) N SUBJECT Lecture3
40 40 Lecture1
41 Strong & Weak Entity Type 41 Entity types can be classify as being strong or weak. A Strong Entity type is an entity that have a key attribute. An entity type is referred to as being strong if its existence does not depend upon the existence of another entity type. A characteristic of a strong entity type is that each entity occurrence is uniquely identifiable using the primary key attribute(s) of that entity type. E.g. Staff is strong entity type has ( staffno as primary key) Lecture3
42 Strong & Weak Entity Type (cont.) 42 A Weak entity type is an entity that does not have a key attribute. A weak entity type is dependent on the existence of another entity type. A characteristic of a weak entity is that each entity occurrence cannot be uniquely identified using only the attributes associated with that entity type. The entity type which the weak entity type depends on is called the identifying entity type (owner). E.g EMPLOYEE Weak entities are identified by the combination of: A partial key of the weak entity type. The primary key of the owner entity type. Lecture3
43 Representing Weak Entities and Relationships 43 Weak entity is indicated by a double line rectangle, and weak relationship is represented by a double line diamond. Employee 1 Has M Dependent The relationship between the weak entity and its owner entity is called weak relationship. Participation of weak entity in weak relationship is always mandatory. Lecture3
44 Weak Entity Type Example 44 E.g. Employee Has Dependent Dependent can be regarded as a weak entity only when the attributes of Dependent can not uniquely identify a dependent. E.g. Dependent has the attributes d_name and d_birthdate only, but two employees may have dependents with the same name and date of birth. However employee_no and d_name uniquely identify each dependent. Employee is the owner entity Has is the weak relationship Lecture3
45 Weak Entity Type Example (cont.) 45 SSN Salary Name Sex EMPLOYEE 1 N DEPENDENTS -OF DEPENDENT BDate Relationship Lecture3
46 Modelling with E-R Diagram 46 List the major entity sets in the system Represent the entity sets graphically by a rectangle Search for relationships between the entities and represent them graphically by a diamond Add attributes, underline PK attribute/s Model relationship cardinality and participation Lecture3
47 The Chen notation for ER modeling 47
48 The Chen notation for ER modeling 48 Composite attribute
49 Example (Company) 49 The COMPANY database keeps track of a company s employees, departments and projects. The company is organized into departments. Each department has a unique number, name, several locations, and a particular employee who manages the department. We keep track of the start date when that employee began managing the department. Each department may control many projects. However, Each project should be controlled by one department only. Project has a unique number, name, and a single location. Lecture3
50 Example (Company) 50 We store each employee s name, social security number, address, salary, sex, and birth date. An employee should be assigned to one department only but each department must have many employees. Each employee should work on several projects and each project should run by many employees. We keep track of the number of hours per week that an employee works on each project. We also keep track of the direct supervisor of each employee. We want to keep track of the dependents of each employee for insurance purposes. We keep each dependent s first name, sex, birth date, and relationship to the employee. Lecture3
51 51 Lecture3
52 Alternative ER Modeling Notations 52 It is important to note that there are many other alternative diagrammatic notations. For examples: Chen notation: the original notation. UML (Unified Modeling Language) notation Crow s Feet notation Barker s notation: is used by the Oracle modelling tools. It s a variation of the "crows foot.
53 53
54 54
55 55 Tool For Drawing ER Diagrams In Oracle software Lecture3
56 56 Lecture1
Lecture3: Data Modeling Using the Entity-Relationship Model.
College of Computer and Information Sciences - Information Systems Dept. Lecture3: Data Modeling Using the Entity-Relationship Model. Ref. Chapter12 Prepared by L. Nouf Almujally & Aisha AlArfaj Rev. by
More information1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems
CS 440: Database Management Systems Chapter 7 Outline Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys Relationship
More informationDatabase Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The
More informationChapter 4. In this chapter, you will learn:
Chapter Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The main characteristics of entity
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling 4.1 The Entity Relationship Model (ERM) ER model forms the basis of an ER diagram ERD
More informationA l Ain University Of Science and Technology
A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ 1 In this chapter, you will learn:
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling Objectives In this chapter, students will learn: The main characteristics of entity relationship
More informationA l Ain University Of Science and Technology
A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ http://www.comp.nus.edu.sg/~lingt
More informationDatabase Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The
More informationUsing High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
Chapter 7: Data Modeling Using the Entity- Relationship (ER) Model Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
More informationRelational Model (cont d) & Entity Relational Model. Lecture 2
Relational Model (cont d) & Entity Relational Model Lecture 2 Relational Database Operators Relational algebra Defines theoretical way of manipulating table contents using relational operators: SELECT
More informationDATABASE SYSTEMS. Chapter 5 Entity Relationship (ER) Modelling DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT
DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 5 Entity Relationship (ER) Modelling 1 Coronel & Crockett 978184480731) In this chapter, you will
More informationConceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More informationData Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell
Data Analysis 1 Chapter 2.1 V3.1 Copyright @ Napier University Dr Gordon Russell Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is
More informationCOSC 304 Introduction to Database Systems. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More informationEntity Relationship Modelling
Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship? Entities, attributes, and relationships in a system The degree of
More informationChapter # 4 Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling Entity Relationship (ER) Modeling ER model forms the basis of an ER diagram ERD represents conceptual database as viewed by end user ERDs depict database s
More informationLecture4: Guidelines for good relational design Mapping ERD to Relation. Ref. Chapter3
College of Computer and Information Sciences - Information Systems Dept. Lecture4: Guidelines for good relational design Mapping ERD to Relation. Ref. Chapter3 Prepared by L. Nouf Almujally & Aisha AlArfaj
More informationOverview of Database Design Process Example Database Application (COMPANY) ER Model Concepts
Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship
More informationER Model. Objectives (2/2) Electricite Du Laos (EDL) Dr. Kanda Runapongsa Saikaew, Computer Engineering, KKU 1
ER Model Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Dept of Computer Engineering Khon Kaen University Objectives (1/2) Relational Data Model Terminology of relational data model How
More informationEntity Relationship Data Model. Slides by: Shree Jaswal
Entity Relationship Data Model Slides by: Shree Jaswal Topics: Conceptual Modeling of a database, The Entity-Relationship (ER) Model, Entity Types, Entity Sets, Attributes, and Keys, Relationship Types,
More informationTHE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)
THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) 2 CHAPTER 7 OUTLINE Using High-Level, Conceptual Data Models for Database Design Entity-Relationship (ER) model Popular high-level conceptual
More informationData Modeling Using the Entity-Relationship (ER) Model
CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-1 Chapter Outline Overview of Database Design Process Example Database Application
More informationCS 405G: Introduction to Database Systems
CS 405G: Introduction to Database Systems Entity Relationship Model Jinze Liu 9/11/2014 1 CS685 : Special The UNIVERSITY Topics in Data of Mining, KENTUCKY UKY Review A database is a large collection of
More informationLECTURE 6: GUIDELINES FOR GOOD RELATIONAL DESIGN MAPPING ERD TO RELATIONS
LECTURE 6: GUIDELINES FOR GOOD RELATIONAL DESIGN MAPPING ERD TO RELATIONS Ref. Chapter 16 Logical Database Design Methodology for the Relational Model 1 Objectives 2 How to derive a set of relations from
More informationCOMP102: Introduction to Databases, 9.1
COMP102: Introduction to Databases, 9.1 Dr Muhammad Sulaiman Khan Department of Computer Science University of Liverpool U.K. 21/22 February, 2011 Database Analysis and Design Techniques: Entity-Relationship
More informationChapter Outline. Note 1. Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts
Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship
More informationCopyright 2016 Ramez Elmasr and Shamkant B. Navathei
CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Slide 1-2 Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes
More informationOverview of Database Design Process. Data Modeling Using the Entity- Relationship (ER) Model. Two main activities:
1 / 14 Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship Types
More informationSahaj Computer Solutions. Data Modeling using the Entity Relationship Model
Data Modeling using the Entity Relationship Model 1 C H A P T E R 3 Contents High-level Conceptual Data Models for Database design Example Database Application Entity types, Entity Sets, Attributes and
More informationChapter 4 Entity Relationship Modeling In this chapter, you will learn:
Chapter Entity Relationship Modeling In this chapter, you will learn: What a conceptual model is and what its purpose is The difference between internal and external models How internal and external models
More informationMore on the Chen Notation
More on the Chen Notation Reference: http://www.vertabelo.com/blog/technical-articles/chen-erd-notation Peter Chen, who developed entity-relationship modeling and published his work in 1976, was one of
More informationDatabase Management System (15ECSC208) UNIT I: Chapter 1: Introduction to DBMS and ER-Model
Database Management System (15ECSC208) UNIT I: Chapter 1: Introduction to DBMS and ER-Model Data Modeling Using the Entity Relationship Model Part 3 Review Conceptual Schema Outcome of the high-level
More informationMIT Database Management Systems Lesson 03: Entity Relationship Diagrams
MIT 22033 Database Management Systems Lesson 03: Entity Relationship Diagrams By S. Sabraz Nawaz Senior Lecturer in MIT, FMC, SEUSL & A.J.M.Hasmy FMC, SEUSL ER - Model The entity-relationship (ER) data
More informationMIS Database Systems Entity-Relationship Model.
MIS 335 - Database Systems Entity-Relationship Model http://www.mis.boun.edu.tr/durahim/ Ahmet Onur Durahim Learning Objectives Database Design Main concepts in the ER model? ER Diagrams Database Design
More informationAdvance Database Management System
Advance Database Management System Conceptual Design Lecture- A simplified database design process Database Requirements UoD Requirements Collection and Analysis Functional Requirements A simplified database
More informationElements of the E-R Model
Chapter 3: The Entity Relationship Model Agenda Basic Concepts of the E-R model (Entities, Attributes, Relationships) Basic Notations of the E-R model ER Model 1 Elements of the E-R Model E-R model was
More informationcourse 3 Levels of Database Design CSCI 403 Database Management Mines Courses ERD Attributes Entities title 9/26/2018
3 Levels of Database Design CSCI 403 Database Management 13 Database Modeling with Entity-Relationship Diagrams Conceptual (this lecture) Understand data entities & relationships between them Communication
More informationIS 263 Database Concepts
IS 263 Database Concepts Lecture 1: Database Design Instructor: Henry Kalisti 1 Department of Computer Science and Engineering The Entity-Relationship Model? 2 Introduction to Data Modeling Semantic data
More informationData Modeling with the Entity Relationship Model. CS157A Chris Pollett Sept. 7, 2005.
Data Modeling with the Entity Relationship Model CS157A Chris Pollett Sept. 7, 2005. Outline Conceptual Data Models and Database Design An Example Application Entity Types, Sets, Attributes and Keys Relationship
More informationRepresent entities and relations with diagrams
LEARNING OBJECTIVES Define data modeling terms Describe E-R Model Identify entities and relations Represent entities and relations with diagrams WHAT IS DATA MODELING? A data model is a collection of concepts
More informationData Modeling Using the Entity-Relationship Model
3 Data Modeling Using the Entity-Relationship Model Conceptual modeling is a very important phase in designing a successful database application. Generally, the term database application refers to a particular
More informationLecture 09. Spring 2018 Borough of Manhattan Community College
Lecture 09 Spring 2018 Borough of Manhattan Community College 1 Entity Relationship Modeling The Entity Relationship (ER) is a nontechnical communication model that describes the nature of the data and
More informationAgenda: Understanding Relationship Types Degree and Cardinality with Examples
Data Processing AAOC C311 I Semester 2012 2013 CLASS 4 Agenda: Understanding Relationship Types Degree and Cardinality with Examples Prentice Hall, 2002 1 More on Relationships (A set of meaningful associations
More informationEntity Relationship Modeling. From Rob and Coronel (2004), Database Systems: Design, Implementation, and Management
Entity Relationship Modeling Entity-Relationship Diagram (ERD) Components Entities: correspond to tables in the relational database Attributes: define the characteristics of entities Attributes have a
More informationDatabase Systems ER Model. A.R. Hurson 323 CS Building
ER Model A.R. Hurson 323 CS Building Database Design Data model is a group of concepts that helps to specify the structure of a database and a set of associated operations allowing data retrieval and data
More informationChapter 2 Conceptual Modeling. Objectives
Chapter 2 Conceptual Modeling Basic Entity Relationship Diagrams 1 Objectives Definition of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes
More informationCSE 880:Database Systems. ER Model and Relation Schemas
CSE 880:Database Systems ER Model and Relation Schemas 1 Major Steps for Database Design and Implementation 1. Requirements Collection and Analysis: Produces database requirements such as types of data,
More informationConceptual Data Models for Database Design
Conceptual Data Models for Database Design Entity Relationship (ER) Model The most popular high-level conceptual data model is the ER model. It is frequently used for the conceptual design of database
More informationDatabase Management Systems LECTURE NOTES 2
Database Management Systems LECTURE NOTES 2 Relation: A table; Tuple: A row in a table; Attribute: A column in a table Degree: number of attributes; Cardinality: number of tuples Entity and Entity Sets:
More informationNon-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52
Objectives Computer Science 202 Database Systems: Entity Relation Modelling To learn what a conceptual model is and what its purpose is. To learn the difference between internal models and external models.
More informationSystem Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar
1 System Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar Overview DATABASE ARCHITECTURE 2 External level concerned with the way individual users see the
More information2. DatabaseDesign. Master I Software Engineering. Dr. Imed Bouchrika Dept of Mathematics & Computer Science University of Souk-Ahras
2. DatabaseDesign Master I Software Engineering Dr. Imed Bouchrika Dept of Mathematics & Computer Science University of Souk-Ahras imed@imed.ws Imed Bouchrika. Advanced Databases, Uni of Souk-Ahras 2013-2014
More informationEntity Relationship Modeling
Chapter 12 Entity Relationship Modeling Chapter Objectives In this chapter you will learn: How to use Entity Relationship (ER) modeling in database design. The basic concepts associated with the ER model:
More informationCS3200 Database Design Spring 2018 Derbinsky. Entity-Relationship (ER) Diagrams. Lecture 7
Lecture 7 . Context Outline Design & Implementation Process 2. Goals of Conceptual Design 3. Entity-Relationship (ER) Model 4. One ER Diagrammatic otation 5. Requirements Elicitation 6. Approaches to Conceptual
More informationConceptual Data Modeling
Conceptual Data odeling A data model is a way to describe the structure of the data. In models that are implemented it includes a set of operations that manipulate the data. A Data odel is a combination
More informationData Modeling During System Analysis. Logical Data Model Stages. What is Conceptual Database Design? Gathering Information for Conceptual
Data Modeling Entity Relationship Diagram Lecture 16 CSC(291) [Software Engineering 1] Instructor: Saif-ur-Rehman Khan COMSATS Institute of Information Technology, Islamabad Data Modeling During System
More informationCSE 530A. ER Model. Washington University Fall 2013
CSE 530A ER Model Washington University Fall 2013 Database Design Requirements Analysis Conceptual Database Design Creates an abstract model Logical Database Design Converts abstract model to concrete
More informationRelational Database Systems 1
Relational Database Systems 1 Wolf-Tilo Balke Christoph Lofi Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de Data Modeling Introduction Basic ER Modeling
More informationEntity-Relationship Model
Entity-Relationship Model Data Models High-level or conceptual data models provide concepts that are close to the way many users perceive data, whereas low-level or physical data models provide concepts
More informationConceptual Database Design
Conceptual Database Design Fall 2009 Yunmook Nah Department of Electronics and Computer Engineering Dankook University Conceptual Database Design Methodology Chapter 15, Connolly & Begg Steps to Build
More informationChapter 3 Data Modeling Using the Entity- Relationship (ER) Model
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition Chapter 3-3 Chapter Outline Example Database Application (COMPANY) ER
More information2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos
XVI. The Entity-Relationship Model The Entity Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R
More informationObjectives of logical design... Transforming the ERD diagram into relations. Relational database components. Mapping a composite attribute
Logical database design and the relational model Objectives of logical design... Translate the conceptual design into a logical database design that can be implemented on a chosen DBMS Input: conceptual
More informationLELCTURE 4: ENHANCED ENTITY-RELATIONSHIP MODELING (EER)
LELCTURE 4: ENHANCED ENTITY-RELATIONSHIP MODELING (EER) Ref. Chapter12 from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. IS220 : D at
More informationChapter 2 ENTITY RELATIONSHIP MODEL
INTRODUCTION Chapter 2 ENTITY RELATIONSHIP MODEL Data model is used to describe data, data relationship and constraints on data. A number of different data models have proposed. They can broadly be classified
More informationThe entity is an object of interest to the end user. entity correspond to the table not to a row- in the relational environment.
THE ENTITY RELATIONSHIP MODEL(ERM)ENTITIES The entity is an object of interest to the end user. entity correspond to the table not to a row- in the relational environment. ATTRIBUTES Attributes are characteristics
More informationDatabase Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015
Lecture 5 Database Systems Instructor: M.Imran Khalil Imrankhalil3@gmail.com Resource:Imrankhalil3.wordpress.com University of Sargodha Canal Campus Lahore Overview - important points Some introductory
More informationIntro to DB CHAPTER 6
Intro to DB CHAPTER 6 DATABASE DESIGN &THEER E-R MODEL Chapter 6. Entity Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity Sets Extended E-R Features Design of
More informationChapter 2: Entity-Relationship Model. Entity Sets. Entity Sets customer and loan. Attributes. Relationship Sets. A database can be modeled as:
Chapter 2: Entity-Relationship Model Entity Sets Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema Reduction of an
More informationEntity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables
Entity-Relationship Modelling Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables 1 Entity Sets A enterprise can be modeled as a collection of: entities, and
More informationChapter 12. Entity-Relationship Modeling
Chapter 12 Entity-Relationship Modeling Chapter 12 - Objectives How to use Entity Relationship (ER) modeling in database design. Basic concepts associated with ER model. Diagrammatic technique for displaying
More informationPES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore ) Department of MCA. Solution Set - Test-II
PES Institute of Technology Bangalore South Campus (1 K.M before Electronic City,Bangalore 560100 ) Solution Set - Test-II Sub: Database Management Systems 16MCA23 Date: 04/04/2017 Sem & Section:II Duration:
More informationInstitute of Southern Punjab, Multan
Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com
More informationChapter 3. Data Modeling Using the Entity-Relationship (ER) Model (from E&N and my editing)
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model (from E&N and my editing) Prof.Peter Chen The founder ER Data Model PhD: Harvard 2 Chapter Outline Phase of Database Design Example Database
More informationDefinition. 02. Data Modeling. Example ABC Company Database. Data Modeling Importance
0. Data Modeling Definition Data Model = a collection of concepts that can be used to describe the structure of a database Structure = data types, relationships, constraints that should hold for that data
More informationConceptual Design. The Entity-Relationship (ER) Model
Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Database Design Overview Conceptual design The Entity-Relationship
More informationDatabase Management System 6 ER Modeling...
Database Management System 6 School of Computer Engineering, KIIT University 6.1 A key allows us to identify a set of attributes that suffice to distinguish entities from each other A key is a property
More informationE-R Model. Hi! Here in this lecture we are going to discuss about the E-R Model.
E-R Model Hi! Here in this lecture we are going to discuss about the E-R Model. What is Entity-Relationship Model? The entity-relationship model is useful because, as we will soon see, it facilitates communication
More informationDavid M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship Model Chapter Objectives To understand the two-phase
More informationCMP-3440 Database Systems
CMP-3440 Database Systems Database Architecture Lecture 02 zain 1 Database Design Process Application 1 Conceptual requirements Application 1 External Model Application 2 Application 3 Application 4 External
More informationData Modeling Using the Entity- Relationship Model Design & Analysis of Database Systems
Data Modeling Using the Entity- Relationship Model 406.426 Design & Analysis of Database Systems Jonghun Park jonghun@snu.ac.kr Dept. of Industrial Engineering Seoul National University outline overview
More informationConceptual Data Modeling Using E-R Models. PM Jat
Conceptual Data Modeling Using E-R Models PM Jat pm_jat@daiict.ac.in Data Model Data modeling is the most important task in database development completeness correctness performance of database depends
More informationCONCEPTUAL DESIGN: ER TO RELATIONAL TO SQL
RELATIONAL MODEL TO Data Model CONCEPTUAL DESIGN: ER TO RELATIONAL TO How to represent Entity sets, Relationship sets, Attributes, Key and participation constraints, Subclasses, Weak entity sets...? 2
More informationEECS 647: Introduction to Database Systems
EECS 647: Introduction to Database Systems Instructor: Luke Huan Spring 2009 Administrative I have communicated with KU Bookstore inquring about the text book status. Take home background survey is due
More informationDatabase Applications (15-415)
Database Applications (15-415) The Entity Relationship Model Lecture 2, January 15, 2014 Mohammad Hammoud Today Last Session: Course overview and a brief introduction on databases and database systems
More informationDATABASE DESIGN I - 1DL300
DATABASE DESIGN I - 1DL300 Fall 2009 An introductury course on database systems http://user.it.uu.se/~udbl/dbt1-ht2009/ alt. http://www.it.uu.se/edu/course/homepage/dbastekn/ht09/ Kjell Orsborn Uppsala
More informationER modeling. Lecture 4
ER modeling Lecture 4 1 Copyright 2007 STI - INNSBRUCK Today s lecture ER modeling Slides based on Introduction to Entity-relationship modeling at http://www.inf.unibz.it/~franconi/teaching/2000/ct481/er-modelling/
More informationRelational Database Systems Part 01. Karine Reis Ferreira
Relational Database Systems Part 01 Karine Reis Ferreira karine@dpi.inpe.br Aula da disciplina Computação Aplicada I (CAP 241) 2016 Database System Database: is a collection of related data. represents
More informationDATABASE DESIGN I - 1DL300
DATABASE DESIGN I - 1DL300 Fall 2010 An introductory course on database systems http://www.it.uu.se/edu/course/homepage/dbastekn/ht10/ Manivasakan Sabesan Uppsala Database Laboratory Department of Information
More informationXV. The Entity-Relationship Model
XV. The Entity-Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R Diagrams and Business Rules Acknowledgment:
More informationCOMP 244. Entity Relationship Model Basics. Entity-Relationship Models. Key elements of the E-R model DATABASE CONCEPTS & APPLICATIONS
COMP 244 DATABASE CONCEPTS & APPLICATIONS Entity Relationship Model Basics Key elements of the E-R model Entities Attributes Identifiers (Keys) Relationships Entity-Relationship Models 1 2 Database Concepts
More informationCMPT 354 Database Systems I
CMPT 354 Database Systems I Chapter 2 Entity Relationship Data Modeling Data models A data model is the specifications for designing data organization in a system. Specify database schema using a data
More informationL12: ER modeling 5. CS3200 Database design (sp18 s2) 2/22/2018
L12: ER modeling 5 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/22/2018 200 Announcements! Keep bringing your name plates J Exam 1 discussion: questions on grading: Piazza,
More informationConceptual Data Modeling and the Entity- Relationship Model. Department of Computer Science Northern Illinois University September 2014
Conceptual Data Modeling and the Entity- Relationship Model Department of Computer Science Northern Illinois University September 2014 Data Models A means of describing the structure of the data A set
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model, 7th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity
More informationDatabase Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra
Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Relational Data Model and Relational Constraints Part 1 A simplified diagram to illustrate the main
More informationEntity Relationship Diagram (ERD): Basics
Entity Relationship Diagram (ERD): Basics CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 Overview: 3 Level Database Design Creating an Entity Relationship Diagram (ERD) and associated data dictionary
More informationEssentials of Database Management (Hoffer et al.) Chapter 2 Modeling Data in the Organization
Essentials of Database Management (Hoffer et al.) Chapter 2 Modeling Data in the Organization 1) The logical representation of an organization's data is called a(n): A) database model. B) entity-relationship
More informationUnit 2 - Data Modeling. Pratian Technologies (India) Pvt. Ltd.
Unit 2 - Data Modeling Pratian Technologies (India) Pvt. Ltd. Topics Information Engineering Approaches to IS Developments SDLC Prototyping ER Modeling Why Data Modeling? Definition Information Engineering
More information