Entity Relationship Diagrams and Relational DBs

Size: px
Start display at page:

Download "Entity Relationship Diagrams and Relational DBs"

Transcription

1 Entity Relationship Diagrams and Relational DBs BSAD 4 Dave Novak Topics Covered ERD (entity relationship diagram) Data Modeling Entity vs- Entity set Attribute vs- Relationship Types of attributes and their domain Characteristics of relationships Degree Connectivity Existence Modeling Modeling Why would it be necessary or useful to model the structure of a database system? Before spending time and money on implementation: Make sure structure of DB is logical and technically correct Make sure structure addresses needs and constraints of data collection and use Make sure structure helps supports organization s information needs Data Model Entity-Relationship Diagram (ERD) Popular model that focuses on data ERD ERD: Graphical blueprint for the exact design and structure of a relational DB Shows details of things organization collects data about and how those things are related Relational Database Management System RDBMS A very popular, widely used DBMS Made possible by modern computing power computer must a lot of processing work User does not need to understand the underlying structure of the database Based on SQL

2 Organization of data in two-dimensional tables connected via relationships Tables are linked to one another using a common data element (attribute) that appears in both tables By linking tables via relationships users can navigate the database and extract and combine data from different tables The Table is the fundamental component in a relational database All data belong to a table This approach provides a much easier way to manage data Data are essentially grouped by common themes and then connected by relationships in a logical manner based on the ERD A relationship is a connection between two or more simple two-dimensional tables that consist of rows (entity / records) and columns (attributes / fields) of data Each entity is a unique observation Each row in a table Attributes are the common characteristics that are used to describe the entities in the table The columns in each table Power of an RDBs comes from ability to quickly find and bring together data stored in separate tables using queries, forms, and reports Can bring together attributes and entities from separate tables CLASS SECTION Table Course Max Current Start End Time CRN Dept # Title Sec Enroll Enroll Time Days InstructoCredits T R Jones BSAD 20 Prin Mgmt & Org Behavior A :30 0: BSAD 20 Prin Mgmt & Org Behavior B 40 4 :00 2:5 T R Jones BSAD 20 Prin Mgmt & Org Behavior C :00 20:00 R Viets BSAD 20 Prin Mgmt & Org Behavior D :05 :50 F Viets BSAD 20 Prin Mgmt & Org Behavior E :20 5:00 F Viets BSAD 2 ST: Human Resources Mgmt B :35 6:50 M W McIntosh BSAD 32 Legal & Political Envir of Bus A :00 5:5 T R Monte BSAD 32 Legal & Political Envir of Bus B :30 6:45 T R Monte BSAD 4 Mgmt Information Systems A :05 0:20 M W Kraushaa BSAD 4 Mgmt Information Systems B :35 :50 M W Kraushaa BSAD 4 Mgmt Information Systems C :35 6:50 M W Novak BSAD 42 Structured Business Prgmming A 40 9 :00 2:5 T R Bovee BSAD 43 Struc Anyl & Dsgn Business Sys A :00 8:5 M W Kraushaa BSAD 46 Loc Area Net/Wrk Grp & Sm Bus A 40 0:35 :50 M W Novak BSAD 50 Marketing Management A :00 5:5 M W Zhang BSAD 50 Marketing Management B :30 3:45 T R Noordew BSAD 50 Marketing Management C :00 5:5 T R Noordew 3 2

3 Review Review Key Terminology EMPLOYEES IN A DEPARTMENT EMPLOYEE_ID NAME SALARY POSITION... A09 Jane Adams 45, Computer Associate F04 Kent Fuller 34, Executive Secretary L002 LeAnn Lynn 56,29.00 Lab Manager What is the entity set represented here? What is an example of an entity within the entity set? What are some of the attributes of the entity? Why is the first field Employee ID underlined? Entity Set / Table (has a name that directly relates to the primary information stored in the table) Entity / Record (this is a row in a table) Attribute / Field (this is a column in the table that describes a characteristic of the entity) Relationship (an association or linkage between two (+) tables) Primary Keys Each record/entity must have a attribute (field/column) or set of attributes that uniquely identifies that specific entity from all the other entities stored in the table The unique attribute (or set of attributes) is called the primary key Primary Keys For our purposes: ALL relational DB tables must have a primary key ALL entities within the table must have a unique primary key value The primary can be created by you Doesn t have to provide value-added information Can be a combination of fields/attributes Can be sequential numbers Can be a combination of letters and numbers Cannot be repeated or left blank for an entity Different Types of Attributes Simple vs- composite Single valued vs- multi-valued Attribute Domain The collection or range of all possible allowable values an attribute may take on EmpDOB: list of all valid employee birth NumDependents: positive integers from 0 to 5 Height: positive real numbers between 36.0 and 84.0 inches. UnionMember: logical yes (true) or no (false) EmpSSN: list of valid social security numbers 3

4 Value for Each Attribute Each data attribute takes on a specific value: A value is one particular instance of an allowable attribute for an entity e.g. Employee attributes: Relationships Entities are connected to one another via relationships The association between two or more entities How we connect the entities or rows in one table to the entities or rows in another table EmpSSN EmpDOB NumDependents Unionmember Height Relationships 3 important characteristics of relationships: ) Degree 2) Connectivity 3) Existence Relationship Degree Loosely equal to the number of entities involved in a particular relationship Could also view this more simplistically as the number of tables linked by each relationship = Unary (aka recursive) 2= Binary 3= Ternary Three types of connectivity relationships are used to describe associations between the entities in different tables How are entities logically connected in the DB? ) One-to-Many 2) Many-to-Many 3) One-to-One Why does this matter? Logically the relationship needs to make sense Don t want the database functionality to allow relationships that are not feasible or practical From a practical perspective, the foreign key always goes on the many side of the relationship need to get this correct Special implementation of M:M & : 4

5 Employee Employee # Employee #2 Employee #3 : Vehicle Company Vehicle # Company Vehicle #2 Company Vehicle #3 This relationship connectivity shows that each employee can be associated with only one company vehicle and that each company vehicle can be associated with only one employee. One-to-One relationship Employee is assigned to one Company Car Each Company Car is assigned to only one employee In this case, the RDB will be structured in a manner that matches a specific employee to a specific company car each and every day. Each car would be explicitly linked to a particular employee Employee Employee # Employee #2 Employee #3 Employee #4 :M Accounting Human Resources Dept This relationship connectivity shows that each employee can be associated with only one organizational department (employees cannot simultaneously be assigned to, or work in, two different departments). However, each department can be staffed with many / multiple employees M One-to-Many relationship A professor can teach many different class sections Each class section is taught by only one professor A customer account can contain many invoices Each invoice is associated with only one customer account One-to-Many example Relationship is labeled :M Professor Each teaches M Each is taught by Class Section Read: left to right on the top of the line Read: right to left on the bottom of the line Customer Customer # Customer #2 Customer #3 M:M # #2 #3 #4 This relationship connectivity shows that customer can be associated with many different products and that each product can be associated with many different customers This relationship will be modeled in a special way!! M M 5

6 Many-to-Many relationship Employee has many job skills Each job skill can be learned by many employees Student can take many class section Each class section can be taken by many students Relationship Existence Denotes whether participation in a relationship is required (or not), and the minimum and maximum number of entities that participate in a particular relationship Mandatory: The existence of one entity depends on the existence of another entity Optional: The existence of one entity is independent of the existence of another entity Mandatory Relationship Existence Example Optional Relationship Existence Example Employee :M Employee :M Employee # Accounting Employee # Accounting Employee #2 Employee #3 Human Resources Dept Employee #2 Employee #3 Human Resources Dept Employee #4 Employee #4 The existence of an instance of employee (an individual employee) depends on the existence of a department where the employee will be assigned In this case, the entity set will need to be populated before the entity set Employee is populated The existence of an instance of employee (an individual employee) is independent of the existence of a department where the employee will be assigned In this case, the entity instance employee #4 can be created without the need to assign that employee to a department Relationship Existence Example Discuss :M Course Section CRN 5099 CRN 5060 CRN 506 CRN 5062 Course BSAD 4 BSAD 73 BSAD 20 Investigating Relationships :M relationship This relationship states that each supplier can provide (or distributes) many different products (, 2, n), but each of those products is provided by (or distributed by) only one supplier In this case, the structure would not allow a specific product to be provided by (or distributed by) to more than one supplier Can provide M Is provided by 6

7 Investigating Relationships :M relationship Table Can provide M Is provided by Nike produces and distributes many models of shoe that are unique to Nike Adidas produces and distributes many models of shoe that are unique to Adidas ASICS produces and distributes many models of shoe that are unique to ASICS ID Company Name Contact Name Contact Title Address City Region Postal Code Country Phone New Orleans Order P.O. Box New (00) Cajun Delights Shelley Burke Administrator Orleans LA 707 USA 4822 Grandma Kelly's Sales (33) Homestead Regina Murphy Representative 707 Oxford Rd. Ann Arbor MI 4804 USA th Bigfoot Regional Avenue (503) Breweries Cheryl Saylor Account Rep. Suite 20 Bend OR 970 USA 993 Can provide M Is provided by Table Can provide M Is provided by Units Quantity Unit Units In On Reorder ID Name ID Category Per Unit Price Stock Order Level Uncle Bob's Organic Dried 2 - lb 7 Pears 3 Seafood pkgs. $ Northwoods Cranberry 2-2 oz 8 Sauce 3 s jars $ Chef Anton's Cajun 48-6 oz 4 Seasoning 2 s jars $ Chef Anton's 5 Gumbo Mix 2 s 36 boxes $ Beverages bottles $ Sasquatch Ale 6 bottles $ Steeleye Stout 6 Beverages Louisiana Fiery Hot Pepper 32-8 oz 65 Sauce 2 s bottles $ Louisiana Hot 24-8 oz 66 Spiced Okra 2 s jars $ Table ID Name ID Category Uncle Bob's Organic Dried Pears 3 Seafood Northwoods Cranberry Sauce 3 Chef Anton's Cajun Seasoning 2 Chef Anton's Gumbo Mix 2 s s 34 Sasquatch Ale 6 Beverages 35 Steeleye Stout 6 Beverages Louisiana Fiery Hot Pepper Sauce 2 Louisiana Hot Spiced Okra 2 Quantity Per Unit Unit Price Units In Stock Units On Order Reorder Level 2 - lb pkgs. $ oz jars $ oz jars $ s 36 boxes $ s s bottles $ bottles $ oz bottles $ oz jars $ Notice that ID is not an attribute of it is the PK of the table and will be the FK (to the table) in the table ID Company Name Contact Name Contact Title Address City Region Postal Code Country Phone New Orleans Order P.O. Box New (00) Cajun Delights Shelley Burke Administrator Orleans LA 707 USA 4822 Grandma Kelly's Sales (33) Homestead Regina Murphy Representative 707 Oxford Rd. Ann Arbor MI 4804 USA th Bigfoot Regional Avenue (503) Breweries Cheryl Saylor Account Rep. Suite 20 Bend OR 970 USA 993 Units Quantity Unit Units In On Reorder ID Name ID Category Per Unit Price Stock Order Level Uncle Bob's Organic Dried 2 - lb 7 Pears 3 Seafood pkgs. $ Northwoods Cranberry 2-2 oz 8 Sauce 3 s jars $ Chef Anton's Cajun 48-6 oz 4 Seasoning 2 s jars $ Chef Anton's 5 Gumbo Mix 2 s 36 boxes $ Beverages bottles $ Sasquatch Ale 6 bottles $ Steeleye Stout 6 Beverages Louisiana Fiery Hot Pepper 32-8 oz 65 Sauce 2 s bottles $ Louisiana Hot 24-8 oz 66 Spiced Okra 2 s jars $ Investigating Relationships The :M relationship example The ID attribute in the table is a foreign key that links the individual products in the table to a specific supplier in the table 7

8 Summary. Describe the differences between ERDs and DFDs 2. Describe importance of relational DBs 3. Familiar with all terminology: tables, relationships, entities, attributes, keys, etc 4. Understand how to implement a relationship 5. Discuss / define the 3 characteristics of relationships 8

Introduction to MS Access: creating tables, keys, and relationships

Introduction to MS Access: creating tables, keys, and relationships Introduction to MS Access: creating tables, keys, and relationships BSAD 141 Dave Novak Topics Covered Brief introduction to MS Access Name and save a DB file Create tables and keys Create and enforce

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

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

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung MIS2502: Data Analytics Relational Data Modeling - 1 JaeHwuen Jung jaejung@temple.edu http://community.mis.temple.edu/jaejung Where we are Now we re here Data entry Transactional Database Data extraction

More information

A hypothetical M:M student schedule example

A hypothetical M:M student schedule example A hypothetical : student schedule example We are interested in creating a relationship between two tables: Student and Class Section. We want to be able to be able to have students register for different

More information

Chapter 4. In this chapter, you will learn:

Chapter 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 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

Lecture3: Data Modeling Using the Entity-Relationship Model.

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 information

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Data Modeling Data modeling is a very vital as it is like creating a blueprint to build a house before the actual building takes place. It is built

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

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

Conceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling

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

MIS2502: Data Analytics Relational Data Modeling. Jing Gong

MIS2502: Data Analytics Relational Data Modeling. Jing Gong MIS2502: Data Analytics Relational Data Modeling Jing Gong gong@temple.edu http://community.mis.temple.edu/gong Where we are Now we re here Data entry Transactional Database Data extraction Analytical

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 4.1 The Entity Relationship Model (ERM) ER model forms the basis of an ER diagram ERD

More information

More on MS Access queries

More on MS Access queries More on MS Access queries BSAD 141 Dave Novak Topics Covered MS Access query capabilities Aggregate queries Different joins Review: AND and OR Parameter query Exact match criteria versus range Formatting

More information

DATABASE SYSTEMS. Chapter 5 Entity Relationship (ER) Modelling DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT

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

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling

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

Database Design. 9-2 Basic Mapping: The Transformation Process. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Design. 9-2 Basic Mapping: The Transformation Process. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Design 9-2 Objectives This lesson covers the following objectives: Distinguish between a conceptual model and a physical model Apply terminology mapping between the two models Understand and apply

More information

More on the Chen Notation

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

Entity-Relationship Model &

Entity-Relationship Model & Entity-Relationship Model & IST 210 Diagram Todd S. Bacastow IST 210: Organization of data 2/1/2004 1 Design Principles Setting client has (possibly vague) idea of what he/she wants. YOUR task must design

More information

Basic Mapping: The Transformation Process. Copyright 2011, Oracle. All rights reserved.

Basic Mapping: The Transformation Process. Copyright 2011, Oracle. All rights reserved. Basic Mapping: The Transformation Process Copyright 2011, Oracle. All rights reserved. What Will I Learn? Objectives In this lesson, you will learn to: Distinguish entity relationship models from database

More information

Chapter # 4 Entity Relationship (ER) Modeling

Chapter # 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 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

BSAD 141, Fall 2017 In-class ERD exercise (Tuesday, 10/24)

BSAD 141, Fall 2017 In-class ERD exercise (Tuesday, 10/24) BSAD 4, Fall 207 In-class ERD exercise (Tuesday, 0/24) Student / Course Section example: This example builds directly on the : example we discussed in class last week and is the last in-class example that

More information

MIS Database Systems Entity-Relationship Model.

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

Database Management Systems

Database Management Systems Database Management Systems Associate Professor Dr. Raed Ibraheem Hamed University of Human Development, College of Science and Technology Computer Science Department 2015 2016 Department of Computer Science

More information

Chapter 4 Entity Relationship Modeling In this chapter, you will learn:

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

Entity Relationship Modeling. From Rob and Coronel (2004), Database Systems: Design, Implementation, and Management

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

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

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems

1/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 information

Entity Relationship Data Model. Slides by: Shree Jaswal

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

Discussion Focus. Figure 1

Discussion Focus. Figure 1 Discussion Focus Efficient data management typically requires the use of computer database. A database is a shared, integrated computer structure that stores a collection of: End-user data that is the

More information

Lab # 1. Structuring System Requirements: Diagrams

Lab # 1. Structuring System Requirements: Diagrams Lab # 1 Structuring System Requirements: Diagrams Objectives 1. Use Case diagrams 2. Class Objects (CO) diagrams 3. Context Data Flow Diagrams (Context DFDs) 4. Level-0 Data Flow Diagrams (Level-0 DFDs)

More information

Official Statistics - Relational Database Management Systems. Official Statistics - Relational Database Management Systems

Official Statistics - Relational Database Management Systems. Official Statistics - Relational Database Management Systems Chapter 1 Database fundamentals 1.1. What is a database? A database is a stored collection of data designed for efficient information retrieval, efficient data maintenance and centralised control of an

More information

MIS2502: Data Analytics Relational Data Modeling. Jing Gong

MIS2502: Data Analytics Relational Data Modeling. Jing Gong MIS2502: Data Analytics Relational Data Modeling Jing Gong gong@temple.edu http://community.mis.temple.edu/gong Where we are Now we re here Data entry Transactional Database Data extraction Analytical

More information

course 3 Levels of Database Design CSCI 403 Database Management Mines Courses ERD Attributes Entities title 9/26/2018

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

Handout 2. A very brief intro to relational databases (with more coming later). Conceptual Data Modeling Entity-Relationship Diagrams.

Handout 2. A very brief intro to relational databases (with more coming later). Conceptual Data Modeling Entity-Relationship Diagrams. Handout 2 CS-605 Data Management and Systems Modeling Spring 18 Page 1 of 8 Handout 2 A very brief intro to relational databases (with more coming later). Conceptual Data Modeling Entity-Relationship Diagrams.

More information

Data, Information, and Databases

Data, Information, and Databases Data, Information, and Databases BDIS 6.1 Topics Covered Information types: transactional vsanalytical Five characteristics of information quality Database versus a DBMS RDBMS: advantages and terminology

More information

Relational Database Components

Relational Database Components Relational Database Components Chapter 2 Class 01: Relational Database Components 1 Class 01: Relational Database Components 2 Conceptual Database Design Components Class 01: Relational Database Components

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

Data Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell

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

COMP 244. Entity Relationship Model Basics. Entity-Relationship Models. Key elements of the E-R model DATABASE CONCEPTS & APPLICATIONS

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

Go4 Template Method, Strategy, State Patterns. Presented By: Matt Wilson

Go4 Template Method, Strategy, State Patterns. Presented By: Matt Wilson Go4 Template Method, Strategy, State Patterns Presented By: Matt Wilson Introduction This Presentation Series was created to not only teach what the patterns are, but explain best-practices of when and

More information

Chapter 2 Conceptual Modeling. Objectives

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

Course Design Document: IS202 Data Management. Version 4.5

Course Design Document: IS202 Data Management. Version 4.5 Course Design Document: IS202 Data Management Version 4.5 Friday, October 1, 2010 Table of Content 1. Versions History... 4 2. Overview of the Data Management... 5 3. Output and Assessment Summary... 6

More information

Entity Relationship Modelling

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

Database Design. 6-1 Artificial, Composite, and Secondary UIDs. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Design. 6-1 Artificial, Composite, and Secondary UIDs. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Design 6-1 Objectives This lesson covers the following objectives: Define the different types of unique identifiers (UIDs) Define a candidate UID and explain why an entity can sometimes have more

More information

Database Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015

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

Relational Databases

Relational Databases Relational Databases Lecture 2 Chapter 3 Robb T. Koether Hampden-Sydney College Fri, Jan 18, 2013 Robb T. Koether (Hampden-Sydney College) Relational Databases Fri, Jan 18, 2013 1 / 26 1 Types of Databases

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

Course on Database Design Carlo Batini University of Milano Bicocca Part 5 Logical Design

Course on Database Design Carlo Batini University of Milano Bicocca Part 5 Logical Design Course on Database Design Carlo atini University of Milano icocca Part 5 Logical Design 1 Carlo atini, 2015 This work is licensed under the Creative Commons Attribution NonCommercial NoDerivatives 4.0

More information

Detailed Data Modelling: Attribute Collection and Normalisation of Data

Detailed Data Modelling: Attribute Collection and Normalisation of Data Detailed Data Modelling IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling: Attribute Collection and Normalisation of Data The objective of detailed data modelling is to develop a detailed

More information

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one Data Management We start our studies of Computer Science with the problem of data storage and organization. Nowadays, we are inundated by data from all over. To name a few data sources in our lives, we

More information

Introduction to MS Access queries

Introduction to MS Access queries Introduction to MS Access queries Topics Covered Brief introduction to MS Access query capabilities BSAD 141 Dave Novak Introduction to Access provides powerful query capabilities that allow you to do

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

Lecture4: Guidelines for good relational design Mapping ERD to Relation. Ref. Chapter3

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

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

IMS1002/CSE1205 Lectures 1

IMS1002/CSE1205 Lectures 1 IMS1002/CSE1205 Systems Analysis and Design Lecture 2 & 3 Introduction to Data Modelling Entity Relationship Modelling Data Modelling Focus on the information aspects of the organisation In a database

More information

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1 CS 4604: Introduction to Database Management Systems B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1 E/R: NOT IN BOOK! IMPORTANT: Follow only lecture slides for this topic! Differences

More information

Data Management Lecture Outline 2 Part 2. Instructor: Trevor Nadeau

Data Management Lecture Outline 2 Part 2. Instructor: Trevor Nadeau Data Management Lecture Outline 2 Part 2 Instructor: Trevor Nadeau Data Entities, Attributes, and Items Entity: Things we store information about. (i.e. persons, places, objects, events, etc.) Have relationships

More information

Database Foundations. 5-1 Mapping Entities and Attributes. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 5-1 Mapping Entities and Attributes. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 5-1 Road Map You are here Mapping Entities and Attributes Mapping Primary and Foreign Keys 3 Objectives This lesson covers the following objectives: Describe why you need to create

More information

COMP Instructor: Dimitris Papadias WWW page:

COMP Instructor: Dimitris Papadias WWW page: COMP 5311 Instructor: Dimitris Papadias WWW page: http://www.cse.ust.hk/~dimitris/5311/5311.html Textbook Database System Concepts, A. Silberschatz, H. Korth, and S. Sudarshan. Reference Database Management

More information

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530 Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms Relation Primary key Foreign key Referential integrity Field

More information

Relational Database Model. III. Introduction to the Relational Database Model. Relational Database Model. Relational Terminology.

Relational Database Model. III. Introduction to the Relational Database Model. Relational Database Model. Relational Terminology. III. Introduction to the Relational Database Model Relational Database Model In 1970, E. F. Codd published A Relational Model of Data for Large Shared Data Banks in CACM. In the early 1980s, commercially

More information

ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1

ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1 ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1 ER Diagram ID-Dependent and Weak Entities Ray Lockwood Points: An ID-dependent entity is an entity whose identifier (key) includes the identifier

More information

Database Management Systems,

Database Management Systems, Database Management Systems Database Design (2) 1 Topics Data Base Design Logical Design (Review) Physical Design Entity Relationship (ER) Model to Relational Model Entity Relationship Attributes Normalization

More information

Entity-Relationship Models

Entity-Relationship Models Entity-Relationship Models 1 / 24 Entity-Relationship Models Entities Attributes Relationships 2 / 24 The Role of Conceptual Models High-level but concrete view of data understandable by end users and

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

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

Relational terminology. Databases - Sets & Relations. Sets. Membership

Relational terminology. Databases - Sets & Relations. Sets. Membership Relational terminology Databases - & Much of the power of relational databases comes from the fact that they can be described analysed mathematically. In particular, queries can be expressed with absolute

More information

Chapter 2 ENTITY RELATIONSHIP MODEL

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

LAB 2 Notes. Conceptual Design ER. Logical DB Design (relational) Schema Refinement. Physical DD

LAB 2 Notes. Conceptual Design ER. Logical DB Design (relational) Schema Refinement. Physical DD LAB 2 Notes For students that were not present in the first lab TA Web page updated : http://www.cs.ucr.edu/~cs166/ Mailing list Signup: http://www.cs.ucr.edu/mailman/listinfo/cs166 The general idea of

More information

CS2300: File Structures and Introduction to Database Systems

CS2300: File Structures and Introduction to Database Systems CS2300: File Structures and Introduction to Database Systems Lecture 9: Relational Model & Relational Algebra Doug McGeehan 1 Brief Review Relational model concepts Informal Terms Formal Terms Table Relation

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

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 Design with ER Model

Conceptual Design with ER Model Conceptual Design with ER Model Lecture #2 1/24/2012 Jeff Ballard CS564, Spring 2014, Database Management Systems 1 See the Moodle page Due February 7 Groups of 2-3 people Pick a team name Homework 1 is

More information

Detailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes

Detailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling The objective of detailed data modelling is to develop a detailed data structure that: Detailed Data Modelling: Attribute Collection

More information

Objectives Definition iti of terms List five properties of relations State two properties of candidate keys Define first, second, and third normal for

Objectives Definition iti of terms List five properties of relations State two properties of candidate keys Define first, second, and third normal for Chapter 5: Logical Database Design and the Relational Model Modern Database Management 9 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi 2009 Pearson Education, Inc. Publishing as Prentice

More information

Database Design Process

Database Design Process Database Design Process Real World Functional Requirements Requirements Analysis Database Requirements Functional Analysis Access Specifications Application Pgm Design E-R Modeling Choice of a DBMS Data

More information

L12: ER modeling 5. CS3200 Database design (sp18 s2) 2/22/2018

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

Systems Analysis and Design in a Changing World, Fourth Edition. Chapter 12: Designing Databases

Systems Analysis and Design in a Changing World, Fourth Edition. Chapter 12: Designing Databases Systems Analysis and Design in a Changing World, Fourth Edition Chapter : Designing Databases Learning Objectives Describe the differences and similarities between relational and object-oriented database

More information

Exam code: Exam name: Database Fundamentals. Version 16.0

Exam code: Exam name: Database Fundamentals. Version 16.0 98-364 Number: 98-364 Passing Score: 800 Time Limit: 120 min File Version: 16.0 Exam code: 98-364 Exam name: Database Fundamentals Version 16.0 98-364 QUESTION 1 You have a table that contains the following

More information

Attributes. Entity-Relationship Model (ERM) IV. Entity Relationship Modeling. Entities and Attributes: Chen and Crow s Foot

Attributes. Entity-Relationship Model (ERM) IV. Entity Relationship Modeling. Entities and Attributes: Chen and Crow s Foot Entity-Relationship odel (ER) IV. Entity Relationship odeling Basis of an Entity-Relationship Diagram (ERD) A design technique Diagrams entities sets (with attributes) and the relationship between the

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

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

Conceptual Design. The Entity-Relationship (ER) Model

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

1.264 Lecture 6. Data modeling

1.264 Lecture 6. Data modeling 1.264 Lecture 6 Data modeling 1. Data models Data model is representation of Things (or entities or objects) of importance to a business How the things relate to each other It is built and modified until

More information

Database Design Process. Requirements Collection & Analysis

Database Design Process. Requirements Collection & Analysis Database Design Process Real World Functional Requirements Requirements Analysis Database Requirements Functional Analysis Access Specifications Application Pgm Design E-R Modeling Choice of a DBMS Data

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

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530 Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms 9.2 Relation Primary key Foreign key Referential integrity

More information

2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos

2004 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 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

Database Foundations. 2-3 Conceptual Data Modeling. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 2-3 Conceptual Data Modeling. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 2-3 Roadmap You are here What Is a Table? Relational Databases Conceptual Data Modeling Data Modeling Terminology Unique Identifiers and Primary Keys Relationships and Foreign Keys

More information

Data Modeling During System Analysis. Logical Data Model Stages. What is Conceptual Database Design? Gathering Information for Conceptual

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

Database Applications (15-415)

Database Applications (15-415) Database Applications (15-415) The Relational Model Lecture 3, January 18, 2015 Mohammad Hammoud Today Last Session: The entity relationship (ER) model Today s Session: ER model (Cont d): conceptual design

More information

Let s briefly review important EER inheritance concepts

Let s briefly review important EER inheritance concepts Let s briefly review important EER inheritance concepts 1 is-a relationship Copyright (c) 2011 Pearson Education 2 Basic Constraints Partial / Disjoint: Single line / d in circle Each entity can be an

More information

Copyright 2016 Ramez Elmasr and Shamkant B. Navathei

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

SQA Advanced Unit Specification: general information. Relational Database Management Systems

SQA Advanced Unit Specification: general information. Relational Database Management Systems : general information Unit title: Relational Database Management Systems Unit code: HP2J 48 Superclass: CB Publication date: August 2017 Source: Scottish Qualifications Authority Version: 01 Unit purpose

More information