M359 Block4 - Lecture11 Eng/ Waleed Omar. Database life cycle

Size: px
Start display at page:

Download "M359 Block4 - Lecture11 Eng/ Waleed Omar. Database life cycle"

Transcription

1 Database life cycle EXERCISE 3.3 What is the principal difference between a conceptual data model and the relational representation of the conceptual data model? SOLUTION The conceptual data model describes what relationships exist between the data, whereas the relational representation of the conceptual data model describes how these relationships could be implemented using foreign keys. Distinguishing SVFs & MVFs A Single-Valued Fact (SVF) is a fact of an entity type which can take a single values per occurrence A multi-valued fact (MVF), is a fact of an entity type which can take several values per occurrence. Wards:- "The hospital is organized into a number of wards, each of which may be empty or may be occupied by one or more patients. Each ward is identified by a ward number; it has a name and contains a fixed number of beds. Each ward is staffed by one or more nurses." Ward(WardNo,WardName,NumberOfBeds) اكتشاف الجداول والحقول والعلاقات من السیناریو:- Nurses Each nurse is identified by a staff number and has a name. A nurse is assigned to a single ward. Some nurses are designated to supervise one or more other nurses on the same ward. A nurse has at most one supervisor. Page 1

2 Nurse(StaffNo,NurseName) Patients "Each patient in the hospital has a patient identification number and name recorded, their gender, height and weight is kept on record. Each patient is assigned to a single ward and is under the care of (is the responsibility of) a single doctor who must have a position of consultant... A patient may receive more than one treatment from each doctor..." Patient(PatientID,PateintName,Gender,Height,Weight) Page 2

3 v single-valued properties of an entity type are represented in the E-R model by either: oan attribute of that entity type oor a :1 relationship with another (or the same) entity type. v multi-valued properties of an entity type are represented by: oa :n relationship with another (or the same) entity type. ==================================================================== Optional properties If a single-valued property is optional, we represent it by a new entity type connected by a relationship with optional participation. Example: We represent the single valued property that Consultants must have a specialism, but registrars and house officers are not specialists and do not have a specialism by introducing the Specialist entity type to record the specialisms of consultants. The 1:1 relationship IsA between Doctor and Specialist has optional participation with respect to Doctor, denoting that not every doctor will be a specialist ==================================================================== مھم Weak entity types whose entities cannot exist without there being occurrences of another related entity type. 1. Have a mandatory relationship with another entity type (the owner). 2. The identifier of that entity type is the same as, or a subset of, the weak entity type, and 1 3. The owner entity type is at the :1 end of this relationship. In the Hospital conceptual data model, Specialist is a weak entity type since: 1. it has mandatory participation with respect to the relationship IsA with the Doctor entity type, 2. it has the same identifier as the Doctor entity type, and 3. Its owner is at a :1 end with the IsA relationship Doctor(StaffNo,DoctorName,Position) Specialist(StaffNo,Specification) Page 3

4 EXERCISE 3.13 Why is Treatment a weak entity type? Solution: Because it has mandatory participation with respect to the n:1 relationships with the Doctor and Patient entity types, Provides and Receives respectively, and the identifiers of the Doctor and Patient entity types are subsets of the identifier of the Treatment entity type. Entity subtypes Entity supertypes are abstract concepts and have no occurrences and serve solely to define the properties common to all of their subtypes. The properties of a supertype are inherited by all of its subtypes. Entity subtypes, of which there must be at least two, are concrete concepts in that they may have occurrences and define the properties specific to that particular entity subtype. Entity Supertype Entity Subtype Doctor (StaffNo, DoctorName) JuniorDoctor (Position) Consultant (Specialism) Mutual exclusivity As the identifier is defined in the supertype, occurrences of all of the subtypes are mutually exclusive. Replacing attributes by subtypes Doctor (StaffNo, DoctorName) JuniorDoctor ( ) HouseOfficer ( ) Registrar ( ) Consultant (Specialism) Page 4

5 EXERCISE 3.16 As both doctors and nurses can be considered as medical staff working in the hospital. Introduce a new supertype named, say, MedicalStaff, to represent the staff structure. Solution:- MedicalStaff (StaffNo, Name) Doctor ( ) JuniorDoctor ( ) HouseOfficer ( ) Registrar ( ) Consultant (Specialism) Nurse ( ) ==================================================================== Exclusive and inclusive relationships:- Exclusive relationships are two or more relationships connecting a single entity type with two or more other (possibly the same) entity types where each occurrence of the single entity type participates in exactly one (or possibly none) of the relationships. تعني أن الجدول یرتبط بجدول واحد من الاثنین ولا یمكن یرتبط مع الاثنین في نفس الوقت. Inclusive relationships are two or more relationships connecting a single entity type with two or more other (possibly the same) entity types where each occurrence of the single entity type participates in all (or possibly none) of the relationships. The relationships R1 and R2 could have a degree of 1:1, 1:n or m:n, and the participation conditions of B1 and B2 with respect to R1 and R2 could be either optional or mandatory. Optional exclusive If R1 and R2 are optional exclusive relationships with respect to A, then we use the condition: Either or none: An occurrence of A is associated either with an occurrence of B1 via the R1 relationship or with an occurrence of B2 via the R2 relationship, or with neither, but not with both. الجدول A یرتبط مع الجدول B1 أو الجدول B2 أو لا یرتبط بھم الاثنین ولكن لا یرتبط مع الاثنین في نفس الوقت. Page 5

6 Mandatory exclusive If R1 and R2 are mandatory exclusive relationships with respect to A, then we use the condition: Optional inclusive Either: An occurrence of A is associated either with an occurrence of B1 via the R1 relationship or with an occurrence of B2 via the R2 relationship, but not with both. الجدول A یرتبط مع الجدول B1 أو الجدول B2 ولابد أن یرتبط مع أحدھم فقط. If R1 and R2 are optional inclusive relationships with respect to A, then we use the condition: Both, or none: An occurrence of A is associated with both an occurrence of B1 via the R1 relationship and an occurrence of B2 via the R2 relationship, or with neither. Mandatory inclusive الجدول A یرتبط مع الجدولین B1 و B2 في نفس الوقت أو لا یرتبط مع الجدولین. If R1 and R2 are mandatory inclusive relationships with respect to A, then: Both: It means that each occurrence of A participates in both relationships B1 and B2. No need for additional constraints الجدول A لابد أن یرتبط مع الجدولین B1 و B2 في نفس الوقت Exclusivity and inclusivity between two entity types Exclusivity and inclusivity are properties of the roles that the single entity type (A) plays. We must specify which direction we are reading the diagram, i.e. which one is considered this single entity type ConsistsOf and HeadedBy are mandatory inclusive relationships with respect to the Team entity type because Team has mandatory participation with respect to both relationships. These inclusive relationships represent the following requirements specified in the Hospital scenario: ConsistsOf and HeadedBy are mandatory exclusive relationships with respect to the Doctor entity type because of the following condition that is specified in the additional constraints section of the Hospital conceptual data model: c.3 A consultant must head a team. Doctors who are not consultants must be members of a team. That is, every doctor will have to participate in either relationships, but not both. Page 6

7 EXERCISE 3.19 How do we distinguish between occurrences of the StaffedBy relationship, one from another? SOLUTION Each occurrence of the StaffedBy relationship represents a particular nurse assigned to a particular ward, which is identified by the combination of WardNo and StaffNo values of the corresponding occurrences of the Ward and Nurse entity types involved in that occurrence of the StaffedBy relationship. Example:- Suppose we wish to add a date on which a particular nurse was assigned to a particular ward. This is a property of the relationship type StaffedBy One approach would be simply to add an attribute, say StartDate, to the entity type Nurse at the :n end of the StaffedBy relationship; Nurse (StaffNo, NurseName, StartDate) Another approach is to represent the StaffedBy relationship by an intersection entity type, and record the date by a non-identifying attribute. Ward (WardNo, WardName, NumberOfBeds) WardStaff (StaffNo, StartDate) Nurse (StaffNo, NurseName) Page 7

8 Representing multi-valued properties A work rota can be represented by extending the E-R model as follows: Ward (WardNo, WardName, NumberOfBeds) WardStaff (StaffNo, StartDate) Shift (StaffNo, WeekDay, ShiftTime) Nurse (StaffNo, NurseName) ==================================================================== Guidelines for representing the properties of relationships:- A mandatory single-valued property of, a relationship is recorded by an attribute of an intersection entity type. An optional single-valued property of a relationship is represented by a 1:1 relationship between an intersection entity type and another entity type recording the property with optional participation by the intersection entity type. A multi-valued property of a relationship is represented by a 1:n relationship between an intersection entity type and another entity type recording the property. The participation condition of the intersection entity type is determined by whether the property is optional or mandatory for occurrences of the relationship Temporal properties Temporal properties are those multi-valued properties of entity types where each value is dependent on time. For example, the treatment given to a patient is a multi-valued (multiple treatments) and temporal (StartDate) property of Patient. A patient may receive more than one treatment from each doctor, for which the start date and the reason for the treatment... Are recorded. Representing temporal (historical) properties Let us remove the following limitation: l.1 Only the details of a patient s current stay in hospital are recorded (i.e. only as an inpatient with no patient history of previous stays in the hospital). Our approach will be to consider each property of Patient. If it is a temporal property, then we will consider how it can be represented by revising the Hospital conceptual data model Page 8

9 Temporal properties of patient PatientId should not change over time PatientName could change over time Gender is unlikely to change over time. Height could change over time Weight could change over time EXERCISE 3.23 Assuming that a patient s height and weight are always both measured on the same day, how should we modify the Hospital conceptual data model to record a history of changes to a patient s height and weight? Solution:- Since we are representing a multi-valued property, according to our guidelines this should be conveyed by a :n relationship with another entity type that records the series of historical heights and weights for each patient. Because it is a temporal property, the identifier of this entity type will include an attribute that specifies the dates that particular patients heights and weights were measured. Patient (PatientId, PatientName, Gender) Height&Weight (PatientId, Date, Height, Weight) Single-valued properties represented by a :1 relationship:- Each patient is assigned to a single ward. :1 relationship OccupiedBy with the Ward is also a temporal property because a patient may be assigned to different wards Entitytypes Ward(WardNo,WardName,NumberOfBeds) WardPatient(PatientId, StartDate,EndDate) Patient(PatientId,PatientName,Gender,Height,Weight) Derivable properties (secondary data) are properties whose values can be calculated from other data values are not usually included in an entity relationship model Derived data may still be stored in the database for reasons of usability and/or efficiency Page 9

10 Value sets For each attribute, we need to establish the set of permissible data values that the attribute may hold. A value set may be infinite or finite {n} and {n.n} denote positive integers and real numbers, respectively, and {1...n} for the continuous unbounded sequence {1, 2, 3, 4,...}. Note that { } defines a numerical value set, whereas { } defines the value set of all permutations of three digit-strings. Value sets are recorded in the domain of discourse summary ==================================================================== Analyzing text Analyzing the Hospital scenario The first step is to scan the text to identify all the nouns and noun phrases. In the following copy of the Hospital scenario all the nouns and noun phrases are underlined. Second step: Reduce the list of candidate entity types and properties v discard the following: entity types that are outside the scope of the database that will only have one occurrence. entity types that have the same properties as another entity type because they are simply different names for the same thing entity types that that convey implementation details, Values associated with attributes of entity types. Page 10

There are four different kinds of constraint in SQL:- A not null constraint requires that each entry in a column is not NULL.

There are four different kinds of constraint in SQL:- A not null constraint requires that each entry in a column is not NULL. القیود Constraints Constraints are used to preserve the integrity of the database. SQL allows us to define constraints for use by a DBMS in maintaining the integrity of the database. Constraints in SQL

More information

Objectives: Introduction

Objectives: Introduction Objectives: 1. Describe a Data Model in Power Point a. Use bullets b. Show one bullet at a time c. Use different sorts of transitions between slides d. Use sound for certain slides e. Try out different

More information

"Relations for Relationships"

Relations for Relationships M359 An explanation from Hugh Darwen "Relations for Relationships" This note might help those who have struggled with M359's so-called "relation for relationship" method of representing, in a relational

More information

Database Management System 6 ER Modeling...

Database 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 information

A subquery can occur in a search condition for a WHERE or HAVING clause. If it is known that the subquery results in a single value :>, <,<=,>=,=,<>

A subquery can occur in a search condition for a WHERE or HAVING clause. If it is known that the subquery results in a single value :>, <,<=,>=,=,<> استعلام فرعي Subqueries List the patient identifiers and names of the male patients whose weight is below the average (for other male patients). اعرض أي مریض نوعھ Male ووزنھ أقل من متوسط أوزان كل المرضى

More information

Modeling Relationships

Modeling Relationships Modeling Relationships Welcome to Lecture on Modeling Relationships in the course on Healthcare Databases. In this lecture we are going to cover two types of relationships, namely, the subtype and the

More information

THE 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) 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 information

IS 263 Database Concepts

IS 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 information

Conceptual Database Design (ER modeling) Chapter Three

Conceptual Database Design (ER modeling) Chapter Three Conceptual Database Design (ER modeling) Chapter Three 1 Agenda (Chapter Three) Overview-database design Conceptual Design (E-R Modeling) Structural Constraints EER- Generalization and Specialization Reducing

More information

Full file at

Full file at Modern Database Management, 10e (Hoffer/Ramesh/Topi) Chapter 2 Modeling Data in the Organization 1) Data modeling may be the most important part of the systems development process because: A) data characteristics

More information

Essentials 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 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 information

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 8 Data Modeling Advanced Concepts

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 8 Data Modeling Advanced Concepts Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 8 Data Modeling Advanced Concepts Objectives In this chapter, students will learn: About the extended entity

More information

Microsoft s new database modeling tool: Part 5

Microsoft s new database modeling tool: Part 5 Microsoft s new database modeling tool: Part 5 Terry Halpin Microsoft Corporation Abstract: This is the fifth in a series of articles introducing the Visio-based database modeling component of Microsoft

More information

Entity-Relationship Model. From Chapter 5, Kroenke book

Entity-Relationship Model. From Chapter 5, Kroenke book Entity-Relationship Model From Chapter 5, Kroenke book Database Design Process Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning Problem:

More information

E-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. 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 information

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38 Student Info StudentID: Center: ExamDate: MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: 1356458 Time: 60 min Marks: 38 BC080402322 OPKST 5/28/2010 12:00:00 AM

More information

Chapter 6. Advanced Data Modeling. Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel

Chapter 6. Advanced Data Modeling. Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel Chapter 6 Advanced Data Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: About the extended entity relationship (EER)

More information

Fundamentals, Design, and Implementation, 9/e Copyright 2004 Database Processing: Fundamentals, Design, and Implementation, 9/e by David M.

Fundamentals, Design, and Implementation, 9/e Copyright 2004 Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. Chapter 5 Database Design Elements of Database Design Fundamentals, Design, and Implementation, 9/e Chapter 5/2 The Database Design Process Create tables and columns from entities and attributes Select

More information

Chapter 17. Methodology Logical Database Design for the Relational Model

Chapter 17. Methodology Logical Database Design for the Relational Model Chapter 17 Methodology Logical Database Design for the Relational Model Chapter 17 - Objectives How to derive a set of relations from a conceptual data model. How to validate these relations using the

More information

Unit 2 - Data Modeling. Pratian Technologies (India) Pvt. Ltd.

Unit 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

MTAT Introduction to Databases

MTAT Introduction to Databases MTAT.03.105 Introduction to Databases Lecture #4 Entity-Relationship Modelling Ljubov Jaanuska (ljubov.jaanuska@ut.ee) Lecture 3. Summary So far we have been dealing with a relational database (PCA.db)

More information

Information Technology Audit & Cyber Security

Information Technology Audit & Cyber Security Information Technology Audit & Cyber Security Structured Data Requirements Systems & Infrastructure Lifecycle Management with E-R LEARNING OBJECTIVES Explain the role of conceptual data modeling in the

More information

System Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar

System 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 information

COMN 1.1 Reference. Contents. COMN 1.1 Reference 1. Revision 1.1, by Theodore S. Hills, Copyright

COMN 1.1 Reference. Contents. COMN 1.1 Reference 1. Revision 1.1, by Theodore S. Hills, Copyright COMN 1.1 Reference 1 COMN 1.1 Reference Revision 1.1, 2017-03-30 by Theodore S. Hills, thills@acm.org. Copyright 2015-2016 Contents 1 Introduction... 2 1.1 Release 1.1... 3 1.2 Release 1.0... 3 1.3 Release

More information

Logical Database Design. ICT285 Databases: Topic 06

Logical Database Design. ICT285 Databases: Topic 06 Logical Database Design ICT285 Databases: Topic 06 1. What is Logical Database Design? Why bother? Bad logical database design results in bad physical database design, and generally results in poor database

More information

Assignment 2: Relational Model

Assignment 2: Relational Model Data Modelling and Databases Exercise dates: March 8/March 9, 208 Ce Zhang, Gustavo Alonso Last update: March 6, 208 Spring Semester 208 Head TA: Ingo Müller Assignment 2: Relational Model This assignment

More information

Äriprotsesside modelleerimine ja automatiseerimine Loeng 7 Valdkonna mudel

Äriprotsesside modelleerimine ja automatiseerimine Loeng 7 Valdkonna mudel Äriprotsesside modelleerimine ja automatiseerimine Loeng 7 Valdkonna mudel Enn Õunapuu enn.ounapuu@ttu.ee What is a domain model? A domain model captures the most important types of objects in the context

More information

Each name is attached to a student. This is not an SVF a common name like John Smith might be shared by several different students.

Each name is attached to a student. This is not an SVF a common name like John Smith might be shared by several different students. Normal forms A poor choice to design relations can lead to problems such as being unable to record simple facts or easily update information, or the inadvertent loss of information. Insertion, amendment

More information

CSE 530A. ER Model. Washington University Fall 2013

CSE 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 information

Conceptual Data Modeling

Conceptual 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 information

Multiple Choice Questions

Multiple Choice Questions Chapter 9 Structuring System Data Requirements 193 Chapter 9 Structuring System Data Requirements Multiple Choice Questions 1. Some systems developers believe that a data model is the most important part

More information

Related download: Instructor Manual for Modern Database Management 12th Edition by Hoffer Venkataraman Topi (Case studies included)

Related download: Instructor Manual for Modern Database Management 12th Edition by Hoffer Venkataraman Topi (Case studies included) Modern Database Management Test Bank, 12e (Hoffer) Completed download: https://testbankarea.com/download/modern-database-management-12thedition-test-bank-hoffer-venkataraman-topi/ Related download: Instructor

More information

4. Entity Relationship Model

4. Entity Relationship Model 4. Entity Relationship Model a) ER-Model: Used to construct conceptual data model, representing the structure and constraints of a database, which is not dependent on a software (like DBMS) or any data

More information

Systems Analysis and Design Methods Chapter 7: Data Modeling and Analysis

Systems Analysis and Design Methods Chapter 7: Data Modeling and Analysis Systems Analysis and Design Methods Chapter 7: Data Modeling and Analysis Multiple Choice Questions 1. Which of the following sentence is NOT correct about a logical model: A. is implementation dependent

More information

INTRODUCTION TO RELATIONAL DATABASE SYSTEMS

INTRODUCTION TO RELATIONAL DATABASE SYSTEMS INTRODUCTION TO RELATIONAL DATABASE SYSTEMS DATENBANKSYSTEME 1 (INF 3131) Torsten Grust Universität Tübingen Winter 2015/16 1 THE ENTITY-RELATIONSHIP MODEL The Entity-Relationship Model (ER model) has

More information

Introduction to modeling

Introduction to modeling Introduction to modeling Relational modelling Slides for this part are based on Chapters 11 from Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition (ISBN: 978-0-12-373568-3),

More information

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques Fundamentals, Design, and Implementation, 9/e Three Schema Model ANSI/SPARC introduced the three schema model in 1975 It provides a framework

More information

Represent entities and relations with diagrams

Represent 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 information

Chapter 2: ER-Diagrams. Content: Learn how to draw ER diagrams Useful to model a database

Chapter 2: ER-Diagrams. Content: Learn how to draw ER diagrams Useful to model a database Chapter 2: ER-Diagrams Content: Learn how to draw ER diagrams Useful to model a database 1 Database Design DBS can take care automatically of many things but the user has to specify Requirements of the

More information

LECTURE 3: ENTITY-RELATIONSHIP MODELING

LECTURE 3: ENTITY-RELATIONSHIP MODELING 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

More information

Non-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52

Non-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 information

A Flat file database. Problems with a flat file database (data redundancy)

A Flat file database. Problems with a flat file database (data redundancy) Data capture Before you can create a database, you need to collect data. This is known as data capture. One of the most common ways is to use and optical mark reader (OMR). An OMR sensor is used for marking

More information

3 February 2011 CSE-3421M Test #1 p. 1 of 14. CSE-3421M Test #1. Design

3 February 2011 CSE-3421M Test #1 p. 1 of 14. CSE-3421M Test #1. Design 3 February 2011 CSE-3421M Test #1 p. 1 of 14 CSE-3421M Test #1 Design Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 75 minutes Term: Winter 2011 Answer the following

More information

Chapter 5: Structural Modeling

Chapter 5: Structural Modeling Chapter 5: Structural Modeling Objectives Understand the rules and style guidelines for creating CRC cards, class diagrams, and object diagrams. Understand the processes used to create CRC cards, class

More information

HFL MEDICAL ADD SPECIALTY

HFL MEDICAL ADD SPECIALTY March, 2012 Page i TABLE OF CONTENTS 1.0 GENERAL INFORMATION 3 1.1 SYSTEM OVERVIEW 3 1.2 AUTHORIZED USE PERMISSION 3 1.3 ORGANIZATION OF THE MANUAL 3 1.4 ACRONYMS AND ABBREVIATIONS 4 1.5 KNOWN ISSUES 4

More information

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam Question No: 1 ( Marks: 1 ) - Please choose one Which of the following is NOT a feature of Context DFD?

More information

Module 2 : Entity-Relationship Model 15

Module 2 : Entity-Relationship Model 15 Module 2 : Entity-Relationship Model 15 Module-02 Entity Relationship Data Model 2.1 Motivation Data modeling is an essential step in the process of creating any Database Application. It helps Database

More information

Conceptual 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 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 information

Advance Database Management System

Advance 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 information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Exam Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1) A process has a: 1) A) pronoun label B) noun phrase label C) verb phrase label D) adjective

More information

David 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 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 information

CS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010

CS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010 CS403- Database Management Systems Solved MCQS From Midterm Papers April 29,2012 MC100401285 Moaaz.pk@gmail.com Mc100401285@gmail.com PSMD01 CS403- Database Management Systems MIDTERM EXAMINATION - Spring

More information

Lecture 09. Spring 2018 Borough of Manhattan Community College

Lecture 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 information

Full file at Modern Database Management, Eleventh Edition

Full file at   Modern Database Management, Eleventh Edition 30 Modern Database Management, Eleventh Edition Chapter 2 Modeling Data in the Organization Chapter Overview The purpose of this chapter is to present a detailed description of the entity-relationship

More information

A l Ain University Of Science and Technology

A 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 information

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques Fundamentals, Design, and Implementation, 9/e Three Schema Model ANSI/SPARC introduced the three schema model in 1975 It provides a framework

More information

Entity-Relationship Model. Dr. Samaresh Mishra, School of Computer Engineering, KIIT University, Bhubaneswar

Entity-Relationship Model. Dr. Samaresh Mishra, School of Computer Engineering, KIIT University, Bhubaneswar Entity-Relationship Model Dr. Samaresh Mishra, School of Computer Engineering, KIIT University, Bhubaneswar Conceptual data modelling motivation, Entities, Entity types, Various types of attributes, Relationships,

More information

Data Modeling Using the Entity-Relationship (ER) Model

Data 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 information

Assignment 2: Relational Model Solution

Assignment 2: Relational Model Solution Data Modelling and Databases Exercise dates: March 8/March 9, 208 Ce Zhang, Gustavo Alonso Last update: March 6, 208 Spring Semester 208 Head TA: Ingo Müller Assignment 2: Relational Model Solution This

More information

CS3200 Database Design Spring 2018 Derbinsky. Entity-Relationship (ER) Diagrams. Lecture 7

CS3200 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 information

Introduction to Database. Dr Simon Jones Thanks to Mariam Mohaideen

Introduction to Database. Dr Simon Jones Thanks to Mariam Mohaideen Introduction to Database Dr Simon Jones simon.jones@nyumc.org Thanks to Mariam Mohaideen Today database theory Key learning outcome - is to understand data normalization Thursday, 19 November Introduction

More information

Lecture 2: Entity Relationship Data Model 2. 1

Lecture 2: Entity Relationship Data Model 2. 1 Lecture 2: Entity Relationship Data Model 2. 1 Objectives to understand the basic constructs of the entity-relationship data model to understand the graphical symbols used by the model to represent these

More information

Chapter 3 The Enhanced E-R Model

Chapter 3 The Enhanced E-R Model Chapter 3 The Enhanced E-R Model 1 Objectives Define terms Understand duse of supertype/subtype relationships Understand use of specialization and generalization techniques Specify completeness and disjointness

More information

ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the

ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the organization of data within databases or information systems.

More information

Conceptual Data Models for Database Design

Conceptual 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 information

2) Given the following entities, which of the choices below would be the most complicated?

2) Given the following entities, which of the choices below would be the most complicated? Instant download and all chapters Test Bank Modern Database Management 11th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi https://testbankdata.com/download/test-bank-modern-database-management- 11th-edition-jeffrey-hoffer-v-ramesh-heikki-topi/

More information

Modern Systems Analysis and Design Seventh Edition

Modern Systems Analysis and Design Seventh Edition Modern Systems Analysis and Design Seventh Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Structuring System Data Requirements Learning Objectives ü Concisely define each of the following

More information

TMA01 Fall 2011 (Cut-off date 8 Dec 2011)

TMA01 Fall 2011 (Cut-off date 8 Dec 2011) M359 Relational databases: theory and practice TMA01 Fall 2011 (Cut-off date 8 Dec 2011) 1. Rules and Guidelines This section contains general rules and guidelines for completing and submitting your TMA.

More information

Topic 2 Discussion Topic: Enhanced Entity Relationship Concepts. Conceptual Design: Enhanced Entity Relationship Model

Topic 2 Discussion Topic: Enhanced Entity Relationship Concepts. Conceptual Design: Enhanced Entity Relationship Model Scroll down and click "Respond" to post your reply to the Discussion topics. Please review the Discussion Board Participation grading rubric on your course Syllabus. The Discussion Board Participation

More information

Objectives of logical design... Transforming the ERD diagram into relations. Relational database components. Mapping a composite attribute

Objectives 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 information

COMP102: Introduction to Databases, 9.1

COMP102: 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 information

Data Analysis 2. Chapter 2.2 V3.0. Napier University Dr Gordon Russell

Data Analysis 2. Chapter 2.2 V3.0. Napier University Dr Gordon Russell Data Analysis 2 Chapter 2.2 V3.0 Copyright @ Napier University Dr Gordon Russell Entity Relationship Modelling - 2 Overview construct an ER model understand the problems associated with ER models understand

More information

Database 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 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 information

Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys

Using 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 information

Hospital Management System User Manual

Hospital Management System User Manual Assersoft.com Hospital Management System User Manual Assersoft 13 Table of Contents Users... 3 For New User... 3 To Edit existing user... 3 Consultant Management... 4 For New Consultant... 4 To Edit existing

More information

Objectives Definition iti of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes Distinguis

Objectives Definition iti of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes Distinguis Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Objectives

More information

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data. Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting

More information

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level *2898775305* COMPUTER SCIENCE 9608/11 Paper 1 Theory Fundamentals October/November 2017 1 hour 30 minutes

More information

Entity Relationship modeling from an ORM perspective: Part 2

Entity Relationship modeling from an ORM perspective: Part 2 Entity Relationship modeling from an ORM perspective: Part 2 Terry Halpin Microsoft Corporation Introduction This article is the second in a series of articles dealing with Entity Relationship (ER) modeling

More information

Chapter 1: The Database Environment

Chapter 1: The Database Environment Chapter 1: The Database Environment Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Prentice Hall, 2002 1 Definitions Data: Meaningful facts, text, graphics,

More information

ER Model Overview. The Entity-Relationship Model. Database Design Process. ER Model Basics

ER Model Overview. The Entity-Relationship Model. Database Design Process. ER Model Basics ER Model Overview The Entity-Relationship Model Davood Rafiei Developed by Peter Chen in the mid 70 s Used for the design of conceptual schema. The world is described in terms of entities relationships

More information

2.1 Sets 2.2 Set Operations

2.1 Sets 2.2 Set Operations CSC2510 Theoretical Foundations of Computer Science 2.1 Sets 2.2 Set Operations Introduction to Set Theory A set is a structure, representing an unordered collection (group, plurality) of zero or more

More information

Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts

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 information

Relational Model (cont d) & Entity Relational Model. Lecture 2

Relational 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 information

ER-to-Relational Mapping

ER-to-Relational Mapping Lecture 9 1 1. Context 2. The Algorithm Outline 2 Database Design and Implementation Process 3 Data Models 4 Example ERD 5 Resulting Relational Schema 6 Step 1: Regular Entity Types i. For each regular/strong

More information

A l Ain University Of Science and Technology

A 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 information

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called Q.1 Short Questions Marks 1. Considering functional dependency, one in which removal from some attributes must affect dependency is called 01 A. full functional dependency B. partial dependency C. prime

More information

Overview of Database Design Process. Data Modeling Using the Entity- Relationship (ER) Model. Two main activities:

Overview 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 information

Chapter 14. Chapter 14 - Objectives. Purpose of Normalization. Purpose of Normalization

Chapter 14. Chapter 14 - Objectives. Purpose of Normalization. Purpose of Normalization Chapter 14 - Objectives Chapter 14 Normalization The purpose of normalization. How normalization can be used when designing a relational database. The potential problems associated with redundant data

More information

Database 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 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 information

Conceptual Database Design

Conceptual 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 information

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017 Applied Databases Lecture 5 ER Model, Normal Forms Sebastian Maneth University of Edinburgh - January 30 th, 2017 Outline 2 1. Entity Relationship Model 2. Normal Forms From Last Lecture 3 the Lecturer

More information

0. Database Systems 1.1 Introduction to DBMS Information is one of the most valuable resources in this information age! How do we effectively and efficiently manage this information? - How does Wal-Mart

More information

Definition. 02. Data Modeling. Example ABC Company Database. Data Modeling Importance

Definition. 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 information

DataBase Lab Lab # 7 ER Using ERWin

DataBase Lab Lab # 7 ER Using ERWin In the name of Allah Islamic University of Gaza Faculty of Engineering Computer Engineering Department ECOM 4113 DataBase Lab Lab # 7 ER Using ERWin El-masry 2013 Objective To be familiar with Entity Relationship

More information

ERD Getting Started Guide

ERD Getting Started Guide Enterprise Studio ERD Getting Started Guide 2017-09-21 Applies to: Enterprise Studio 3.0.0, Team Server 3.0.0 Table of contents 1 About modeling with ERD 4 1.1 What are entity-relationship diagrams? 4

More information

DATABASE DESIGN. Fields in database table have a data type. Some of the data types used in database table are explained below.

DATABASE DESIGN. Fields in database table have a data type. Some of the data types used in database table are explained below. DATABASE DESIGN 1. Description A database is a collection of information and is systematically stored in tables in the form of rows and columns. The table in the database has unique name that identifies

More information

Agenda: Understanding Relationship Types Degree and Cardinality with Examples

Agenda: 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 information

Chapter 2: Entity-Relationship Model

Chapter 2: Entity-Relationship Model Chapter 2: Entity-Relationship Model! 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 E-R

More information

Conceptual Data Modeling Using E-R Models. PM Jat

Conceptual 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 information