Common Data Model Patterns Ray Lockwood 1 Points: Certain patterns recur in data models. We should recognize and name these patterns.

Size: px
Start display at page:

Download "Common Data Model Patterns Ray Lockwood 1 Points: Certain patterns recur in data models. We should recognize and name these patterns."

Transcription

1 Data Modeling and Implementation Common Data Model Patterns Pg 1 Common Data Model Patterns Ray Lockwood 1 Points: Certain patterns recur in data models. We should recognize and name these patterns. Reusable data patterns There are recurring patterns in data models they're building blocks to make new models. Learn to recognize them, and they make data modeling easier. 1. Strong Entity Patterns. a. 1:1 b. 1:M c. M:M 2. ID-Dependent Relationships. a. Association b. Multivalued Attribute c. Archetype/Instance 3. Mixed Identifying and Non-Identifying Relationships. a. Line-item Pattern b. Other Mixed 4. For-Use-By Pattern. 5. Recursive Patterns. a. 1:1 Recursive Relationship b. 1:M Recursive Relationship c. M:M Recursive Relationship Peter Chen describing a pattern. 1 A Strategy for Analyzing an Organization The purpose of patterns is to help model a real-world organization. To do this, we need to see its structure. One approach is to work from the bottom-up. In the bottom-up approach we look at the forms and reports that the organization uses. We determine the entities they represent, and their relationships with each other. From this, we can build much of the organization s data model. You can also validate a data model by the using forms and reports built from the model. Users will understand forms and reports, and can offer feedback. This is much more constructive than showing them an ER diagram. In the Bottom- Up approach, we examine an organization s forms and reports to determine its important entities. The data model patterns that follow are those that correspond to structures found in forms and reports. 1 Photo from Peter Chen s interview on MSDN s channel 9 found at Goin+Deep/Dr-Peter-Chen-Entity-Relationship-Model-Past-Present-and-Future/

2 Data Modeling and Implementation Common Data Model Patterns Pg 2 Strong Entity Patterns (Plain Old Entities Important) First, let s recall the tests for recognizing a strong entity: 1. It has an identifier of its own. 2. It is logically different from other entities. There are three kinds of relationships between two strong entities: 1:1, 1:M, and M:M. How To Determine the Maximum Cardinality of Strong Entity Patterns How do you determine if a relationship is to-one or to-many? Examine a form or report to determine the cardinality in one direction. Examine a different one for the other direction. Combining the two will give the cardinality ratio: 1:1, 1:M, or M:M. You can communicate your design to the user by showing him a form or report which demonstrates the cardinality. The user can tell whether your choice of cardinality is appropriate by recognizing whether the form or report fits his needs. These are the most common, garden variety relationships. The M:M pattern can exist in the data model, but only indirectly in the database. Strong relationships involve independent, freestanding entities. ID-Dependent Relationships (Standard ID-Dependent Entities Important) ID-dependent relationships are the most obvious type of weak entity. Many data modeling tools don t even recognize other types of weak entities. There are three patterns in which an ID-dependent entity may participate: Association Pattern (Important) This example represents a price quotation from a supplier. There's a list of suppliers in the Supplier entity, a list of items in the Item entity, and a list of price quotations in the Quotation entity. Quotation Three ID-dependent patterns. The Association Pattern has the M:M intersection table with extra attributes. SupplierID ItemID Price An Association Table is similar to an Intersection Table, but contains additional information. Supplier SupplierID Street City State ItemID ListPrice Item Here, the intersection table is called an Association Table. Association Pattern

3 Data Modeling and Implementation Common Data Model Patterns Pg 3 A supplier can quote many items, and an item can be quoted by many suppliers. This is a M:M relationship, and the association table records the fact that a supplier has quoted an item, as well as the amount of the quote, and any other details. The Price attribute applies to the relationship and not to either of the entities being linked. This changes the relationship from a simple Many-to-Many Strong Entity Pattern to an Association Pattern. Multivalued Attribute Pattern (Important, happens all the time) Suppose you have a Customer entity which contains details including phone number. You realize you need to keep more than one phone number per customer. You might not know in advance how many phone numbers a customer might have. An Association Table is just an intersection table with additional attributes describing the relationship. Use this when an attribute needs to be a list. You could think of PhoneNum as being a multivalued attribute this is an attribute that, though it is a single attribute, has multiple values. The way to make this work is to put phone number into its own entity and link it to Customer by CustomerID. You might see this as obvious, but now we have a name to call it by. Customer Customer ID Street City State Zip PhoneNum Customer ID PhoneNum Multivalued Attribute Pattern Archetype/Instance Pattern (Important) An archetype is the original model from which instances are copied. When you're shopping for a house in a new subdivision, you might say I like this floor plan. Let s get one built like this but down the road on the corner. The builder might say You picked the Caledonia. It will be ready in three months. Afterwards you can tell your new neighbors that you have a Caledonia, and they'll know how your house is laid out. An master, plus duplicates. A classic ID-dependent relationship. The floor plan is the archetype for the houses built from it. Caledonia is the archetype of your new house instance. Notice that this pattern it has the same structure as the Multivalued Attribute pattern, but its purpose is different.

4 Data Modeling and Implementation Common Data Model Patterns Pg 4 FloorPlan FloorPlanID SquareFeet ID-Dependent House FloorPlanID BuildSequence Address How the Builder sees the house. ID Dependency depends on how you choose the key. Either way, the entity is still weak. FloorPlan FloorPlanID SquareFeet Weak but not ID-Dependent House Address FloorPlanId BuildSequence How the Owner sees the house. Archetype/Instance Pattern The top example shows how the builder might view the house. He would say That s the fifth house built with the Caledonia floor plan. The second example shows how everyone else would identify the house, by its address. In the first instance, House is IDdependent on FloorPlan. In the second instance, House is not ID-dependent but it is still weak. Both are examples of the Archetype/Instance model. The one you chose depends on how the user views the entities.

5 Data Modeling and Implementation Common Data Model Patterns Pg 5 Mixed Identifying and Non-Identifying Relationships There are some patterns that contain both ID-dependent and non ID-dependent relationships. Line Item Pattern This is a common pattern. A purchase order (or sales order, service order, or anything that has a list of items) has a structure that puts a header at the top of the order, and repeating line items below: ABC INC. PURCHASE ORDER Date: 05/04/2007 PO Num 8332 Comes from PurchaseOrder. Comes from Vendor. Supplier: Acme Purchasing Agent: John Smith 123 Main Street Anytown, NY Qty Item Num Description Unit Price Extended Price mm bolt Flange Comes from Buyer. Header area Line items Comes from Item. (Strong) Comes from LineItem. (ID-dependent on the header) Vendor VendorId City Buyer BuyerId Header and the LineItem are the critical entities. The other entities provide incidental relationships. PurchaseOrder PO Header PoNum Date VendorID BuyerID Product ProdNum Description Price PO Line Item Weak LineItem PoNum LineNum ProdNum UnitPrice Qty Line Item Pattern Strong

6 Data Modeling and Implementation Common Data Model Patterns Pg 6 LineItem is ID-dependent on PurchaseOrder. The other entities are strong. The reason it's called a Mixed Identifying/Non-Identifying pattern is that LineItem has two relationships. The first is the ID-dependent (weak) relationship with PurchaseOrder, and the second is the strong relationship with Product. Each line item is made up of attributes from both an ID-dependent entity and a strong entity. If a particular PurchaseOrder is deleted, we ll want to delete the line items that go along with it. It would make no sense to have line items for a purchase order that didn t exist. But if we delete a particular Product, we wouldn't delete any LineItem entities. (The line item isn't part of the same object as the product). Deleting a Product may leave some foreign key values of LineItem invalid, but we don t want the LineItem to disappear. Other Mixed ID-Dependent / Non-Dependent Patterns A mixed identifying and non-identifying relationship occurs when a strong entity (such as PurchaseOrder) has a group of rows associated with it (like LineItem) in an identifying relationship, and one of the attributes of the group is a foreign key to some other strong entity (like Item). Below is another example involving Students, Courses, and Transcripts. There are many more involving recipes, parts lists, inventory, etc. Anything with a list might be a mixed pattern. Student StudentNum First Last StartDate Course CourseNum Description Credits LineItem is weak to one entity, and strong to another. If the entity it is weak to is deleted, LineItem must be deleted, too. If the entity it is strong to is deleted, LineItem will not be deleted. Two ways of saying the same thing. If an instance in a determining relationship is deleted, the dependent instance must be deleted, too. But not so if an instance that is not in a determining relationship is deleted. Identifying (ID-Dependent) relationship In this relationship, the identifier of one entity is part of the identifier of another Weak Transcript StudentNum Semester Grade CourseNum Strong Foreign Key Non-identifying (non-id-dependent) relationship In this relationship, both keys are Identifiers of strong entities. Mixed Identifying/Non-Identifying Pattern Transcript is weak to Student, but strong to Course. If a student is deleted, all his transcript instances should be deleted, too. (You wouldn't be able to identify who once owned the transcript). But if a course is deleted, you wouldn't delete the corresponding transcript instance.

7 Data Modeling and Implementation Common Data Model Patterns Pg 7 For-Use-By Pattern The main use for subtypes is to avoid nulls for inappropriate attributes in a form. If you come across a form that says For Use By Only then you've found a candidate for the For-Use-By pattern. Here is an example: Hunting License License Number Street City State Zip For Use By Firearms Hunters Only Number of years resided in State Safety course ID For Use By Primitive Weapons Hunters Weapon type Subtypes are used to prevent large groups of nulls. Here is the ER diagram using the exclusive subtype connector symbol and the subtype/supertype relationship: HuntingLicense LicenseNum Street Supertype SafetyCourse SafetyCrsNum Date Firearm Primitive YearsReside WeaponType SafetyCrsNum Exclusive subtypes (One or the other) Subtypes are ID-dependent. For-Use-By Pattern Subtypes

8 Data Modeling and Implementation Common Data Model Patterns Pg 8 Below is an alternative diagram of the subtypes: Hunting License Firearm Primitive Supertype with subtypes This notation is much simpler but not well supported by modeling tools. SafetyCourse For-Use-By Pattern (Alternate subtype representation) Recursive Patterns (These are very handy) In a recursive relationship an, entity has a relationship with itself. There are 1:1, 1:M, and M:M varieties of these. 1:1 Recursive Pattern. (List) This pattern makes a list. Suppose we have a waiting list of people wanting to buy a new Lamborghini at their local dealer. We have the first person in the list, then the second, and so on. Each person will have one person before him and one person after him, except for the people at the head of the line and at the end of the line. This models a List. Ed John Alice Joe Queue Person PersonID First Last Address Person Ahead 1:1 Recursive Pattern

9 Data Modeling and Implementation Common Data Model Patterns Pg 9 The minimum cardinality is zero (optional) because the first person in line will have no one ahead of him, and the last person will have no one behind him. The relationship named Person Ahead could just as well be called Person Behind. When implementing this pattern, add an attribute named PersonAhead as a foreign key and give this attribute the Unique constraint. This holds the key value of the person ahead in the line. The rows will link together as though they were nodes in a linked list. Person PersonID PersonAhead First Last Address 001 Ed Smith 124 Main John Jones 21 Elm Alice Doe 16 1st Joe Watson 33 Vine 1:M Recursive Pattern (Tree) This pattern makes a tree, for example an organization chart. Each employee has one manager, and may, himself, manage many other employees. This makes the cardinality among employees 1:M (or manager-to-employees). A child has only one parent. This models a Tree. Bill Tom Fred Sue Ed John Alice Joe Harry Organizational Chart Employee EmployeeNum First Last Address Manages 1:M Recursive Pattern

10 Data Modeling and Implementation Common Data Model Patterns Pg 10 The implementation uses a foreign key, just like the 1:1 pattern. Here, we add an attribute named ManagedBy to the Employee entity as a foreign key, but in this case, without the Unique constraint. Employee EmployeeNum ManagedBy First Last Address 001 Bill Smith 124 Main Tom Jones 21 Elm Fred Doe 16 1st Sue Watson 33 Vine Ed Banks 65 Oak John Benson 42 Park Alice Jenkins 84 Maple Joe Hopkins 94 Center Harry Cramer 70 44th M:M Recursive Pattern (Network) This pattern makes a network. A bill of materials (parts list) is a good example, because a particular type of part may be used by multiple assemblies. The idea behind a bill of materials is that an assembly is composed of parts and is itself a part in a larger assembly. A network looks similar to the tree structure above, except that a child may have many parents. Television This models a Network. Cabinet Power Supply Circuit Board Front Back Knobs Transformer Parts List Resistor Capacitor Part PartNum Remember, we can t directly implement a M:M relationship. Contains This is a M:M relationship and requires an intersection table. M:M Recursive Pattern

11 Data Modeling and Implementation Common Data Model Patterns Pg 11 The minimum cardinality is zero (optional) on both sides of the relationship because a top-level assembly has no assemblies above it, and a bottom level part has no parts below it. This is implemented the same as any other M:M relationship, by adding an intersection table having two key attributes, one for the parent and one for the child. Intersection Table Part PartNum BillOfMaterials PartNum Contains Can either point upward to where the part is used, or downward to the parts it contains just be consistent. M:M Recursive Implementation Part PartNum Television Cabinet PwrSupply CircuitBrd Front Back Knobs Transformer Resistor Capacitor Etc BillOfMaterials PartNum Contains Television Cabinet Television PowerSupply Television CircuitBoard Cabinet Front Cabinet Back Cabinet Knobs PwrSupply Transformer PwrSupply Resistor PwrSupply Capacitor CircuitBrd Resistor CircuitBrd Capacitor

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

ER Modeling Data Modeling and the Entity-Relationship (ER) Diagram Pg 1

ER Modeling Data Modeling and the Entity-Relationship (ER) Diagram Pg 1 ER Modeling Data Modeling and the Entity-Relationship (ER) Diagram Pg 1 Data Modeling and the Entity-Relationship (ER) Diagram Ray Lockwood Points: The Entity-Relationship (ER) Diagram is seen by various

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

Introductory SQL SQL Joins: Viewing Relationships Pg 1

Introductory SQL SQL Joins: Viewing Relationships Pg 1 Introductory SQL SQL Joins: Viewing Relationships Pg 1 SQL Joins: Viewing Relationships Ray Lockwood Points: The relational model uses foreign keys to establish relationships between tables. SQL uses Joins

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

Advanced SQL GROUP BY Clause and Aggregate Functions Pg 1

Advanced SQL GROUP BY Clause and Aggregate Functions Pg 1 Advanced SQL Clause and Functions Pg 1 Clause and Functions Ray Lockwood Points: s (such as COUNT( ) work on groups of Instead of returning every row read from a table, we can aggregate rows together using

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

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

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

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

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

Database Design and Administration for OnBase WorkView Solutions. Mike Martel Senior Project Manager

Database Design and Administration for OnBase WorkView Solutions. Mike Martel Senior Project Manager Database Design and Administration for OnBase WorkView Solutions Mike Martel Senior Project Manager 1. Solution Design vs. Database Design Agenda 2. Data Modeling/Design Concepts 3. ERD Diagramming Labs

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

Software Engineering Prof.N.L.Sarda IIT Bombay. Lecture-11 Data Modelling- ER diagrams, Mapping to relational model (Part -II)

Software Engineering Prof.N.L.Sarda IIT Bombay. Lecture-11 Data Modelling- ER diagrams, Mapping to relational model (Part -II) Software Engineering Prof.N.L.Sarda IIT Bombay Lecture-11 Data Modelling- ER diagrams, Mapping to relational model (Part -II) We will continue our discussion on process modeling. In the previous lecture

More information

Elements of the E-R Model

Elements of the E-R Model Chapter 3: The Entity Relationship Model Agenda Basic Concepts of the E-R model (Entities, Attributes, Relationships) Basic Notations of the E-R model ER Model 1 Elements of the E-R Model E-R model was

More information

Referential Integrity and Other Table Constraints Ray Lockwood

Referential Integrity and Other Table Constraints Ray Lockwood DDL Referential Integrity and Other Table s Pg 1 Referential Integrity and Other Table s Ray Lockwood Points: Referential Integrity assuring tables remain properly linked by primary and foreign keys. Referential

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

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

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

CMP-3440 Database Systems

CMP-3440 Database Systems CMP-3440 Database Systems Database Architecture Lecture 02 zain 1 Database Design Process Application 1 Conceptual requirements Application 1 External Model Application 2 Application 3 Application 4 External

More information

L11: ER modeling 4. CS3200 Database design (sp18 s2) 2/15/2018

L11: ER modeling 4. CS3200 Database design (sp18 s2)   2/15/2018 L11: ER modeling 4 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/15/2018 132 Announcements! Keep coming with your name plates Mid-course feedback for instructor - Exam: Cheat

More information

The Entity-Relationship Model (ER Model) - Part 2

The Entity-Relationship Model (ER Model) - Part 2 Lecture 4 The Entity-Relationship Model (ER Model) - Part 2 By Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Lecture 4 > Section 2 What you will learn about in this section

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

Chapter 3 Database Modeling and Design II. Database Modeling

Chapter 3 Database Modeling and Design II. Database Modeling Chapter 3 Database Modeling and Design II. Database Modeling Dr. Eng. Shady Aly 1 Data modeling تمثيل مجرد A data model is abstract representation of the data on which the IS application is to be based

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

QUICKBOOKS TO ACCOUNTEDGE CONVERSION GUIDE

QUICKBOOKS TO ACCOUNTEDGE CONVERSION GUIDE QUICKBOOKS TO ACCOUNTEDGE CONVERSION GUIDE Our goal is to save you as much time as possible while you transition your business accounting software. While accounting is accounting, AccountEdge takes a very

More information

Handout 4. Logical Database Modeling, Part 1: Relational Data Model. Transforming EER model to Relational.

Handout 4. Logical Database Modeling, Part 1: Relational Data Model. Transforming EER model to Relational. Handout 4 CS-605 Database Management and Modeling -Spring 18 Page 1 of 9 Handout 4 Logical Database Modeling, Part 1: Relational Data Model. Transforming EER model to Relational. Logical Database Design

More information

Database Systems ER Model. A.R. Hurson 323 CS Building

Database Systems ER Model. A.R. Hurson 323 CS Building ER Model A.R. Hurson 323 CS Building Database Design Data model is a group of concepts that helps to specify the structure of a database and a set of associated operations allowing data retrieval and data

More 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

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

Lecture 5. Lecture 5: The E/R Model

Lecture 5. Lecture 5: The E/R Model Lecture 5 Lecture 5: The E/R Model Lecture 2 Announcements! 1. PS1 due at midnight! Please go over Piazza for hints. We will post solutions tomorrow. Grades coming soon! 2. Project part 1 out today! 3.

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

Information Systems (Informationssysteme)

Information Systems (Informationssysteme) Information Systems (Informationssysteme) Jens Teubner, TU Dortmund jensteubner@cstu-dortmundde Summer 2018 c Jens Teubner Information Systems Summer 2018 1 Part IV Database Design c Jens Teubner Information

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

A database can be modeled as: + a collection of entities, + a set of relationships among entities.

A database can be modeled as: + a collection of entities, + a set of relationships among entities. The Relational Model Lecture 2 The Entity-Relationship Model and its Translation to the Relational Model Entity-Relationship (ER) Model + Entity Sets + Relationship Sets + Database Design Issues + Mapping

More information

CSE 880:Database Systems. ER Model and Relation Schemas

CSE 880:Database Systems. ER Model and Relation Schemas CSE 880:Database Systems ER Model and Relation Schemas 1 Major Steps for Database Design and Implementation 1. Requirements Collection and Analysis: Produces database requirements such as types of data,

More information

Designing a Database -- Understanding Relational Design

Designing a Database -- Understanding Relational Design Designing a Database -- Understanding Relational Design Contents Overview The Database Design Process Steps in Designing a Database Common Design Problems Determining the Purpose Determining the Tables

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

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

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

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd. The Entity- Relationship Model R &G - Chapter 2 A relationship, I think, is like a shark, you know? It has to constantly move forward or it dies. And I think what we got on our hands is a dead shark. Woody

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

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

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

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

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

Contents. What is the purpose of this app?

Contents. What is the purpose of this app? Contents What is the purpose of this app?... 1 Setup and Configuration... 3 Guides... 4 nhanced 365 Panels and Tiles... 4 nhanced 365 Fields and Tables... 9 nhanced 365 Views... 12 What is the purpose

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

Lecture 4. Lecture 4: The E/R Model

Lecture 4. Lecture 4: The E/R Model Lecture 4 Lecture 4: The E/R Model Lecture 4 Today s Lecture 1. E/R Basics: Entities & Relations ACTIVITY: Crayon time! 2. E/R Design considerations ACTIVITY: Crayon time pt. II 3. Advanced E/R Concepts

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

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

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

Accounting Information Systems, 2e (Kay/Ovlia) Chapter 2 Accounting Databases. Objective 1

Accounting Information Systems, 2e (Kay/Ovlia) Chapter 2 Accounting Databases. Objective 1 Accounting Information Systems, 2e (Kay/Ovlia) Chapter 2 Accounting Databases Objective 1 1) One of the disadvantages of a relational database is that we can enter data once into the database, and then

More information

DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL. 1 Powered by POeT Solvers Limited

DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL. 1  Powered by POeT Solvers Limited DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL 1 www.pmtutor.org Powered by POeT Solvers Limited 2 www.pmtutor.org Powered by POeT Solvers Limited Entity-Relationship (ER) Model The ER model is a high-level

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

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

The Relational Model. Why Study the Relational Model? Relational Database: Definitions

The Relational Model. Why Study the Relational Model? Relational Database: Definitions The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in

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

ER modeling. Lecture 4

ER modeling. Lecture 4 ER modeling Lecture 4 1 Copyright 2007 STI - INNSBRUCK Today s lecture ER modeling Slides based on Introduction to Entity-relationship modeling at http://www.inf.unibz.it/~franconi/teaching/2000/ct481/er-modelling/

More 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

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

Relational model continued. Understanding how to use the relational model. Summary of board example: with Copies as weak entity

Relational model continued. Understanding how to use the relational model. Summary of board example: with Copies as weak entity COS 597A: Principles of Database and Information Systems Relational model continued Understanding how to use the relational model 1 with as weak entity folded into folded into branches: (br_, librarian,

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

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

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

namib I A U n IVERS I TY

namib I A U n IVERS I TY namib I A U n IVERS I TY OF SCIEnCE AnD TECH n 0 LOGY FACULTY OF COMPUTING AND INFORMATICS DEPARTMENT OF COMPUTER SCIENCE QUALIFICATION: BACHELOR OF COMPUTER SCIENCE QUALIFICATION CODE: 07BACS LEVEL: 5

More information

Tutorial 1: Introduction to Microsoft (MS) Access. Microsoft Access: A Relational Database Application

Tutorial 1: Introduction to Microsoft (MS) Access. Microsoft Access: A Relational Database Application Tutorial 1: Introduction to Microsoft (MS) Access After reading this tutorial and completing the associated exercises, you will be able to: Open MS Access Create tables using MS Access Create forms and

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

Requirement Analysis & Conceptual Database Design

Requirement Analysis & Conceptual Database Design Requirement Analysis & Conceptual Database Design Problem analysis Entity Relationship notation Integrity constraints Generalization Introduction: Lifecycle Requirement analysis Conceptual Design Logical

More information

Appendix A Database Design. Data Modeling and the Entity-Relationship Model

Appendix A Database Design. Data Modeling and the Entity-Relationship Model Appendix A Database Design Data Modeling and the Entity-Relationship Model 1 Three Stages of Database Development The three stages of database development are: 1. Requirements Analysis Stage 2. Component

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

Introduction to Data Management. Lecture #6 E-Rà Relational Mapping (Cont.)

Introduction to Data Management. Lecture #6 E-Rà Relational Mapping (Cont.) Introduction to Data Management Lecture #6 E-Rà Relational Mapping (Cont.) Instructor: Mike Carey mjcarey@ics.uci.edu Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 It s time again for...

More information

Access Intermediate

Access Intermediate Access 2010 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC116 AC117 Selecting Fields Pages AC118 AC119 AC122 Sorting Results Pages AC125 AC126 Specifying Criteria Pages AC132 AC134

More information

A good example of entities and relationships can be seen below.

A good example of entities and relationships can be seen below. Unit 2: Unit 2: Conceptual Design: Data Modeling and the Entity Relationship Model - Discussion 1 Scroll down and click "Respond" to post your reply to the Discussion questions. Please review the Discussion

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

Data and Process Modeling

Data and Process Modeling Data and Process Modeling Chapter 3 Data Models Start with User Views Data Model Diagramming Entity Relationship Diagram (ERD) is most common Original by Peter Chen in 1976 Common ERD Elements: Entities

More information

DATABASE TECHNOLOGY. Spring An introduction to database systems

DATABASE TECHNOLOGY. Spring An introduction to database systems 1 DATABASE TECHNOLOGY Spring 2007 An introduction to database systems Kjell Orsborn Uppsala Database Laboratory Department of Information Technology, Uppsala University, Uppsala, Sweden 2 Introduction

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 Modeling in ER and UML

Conceptual Modeling in ER and UML Courses B0B36DBS, A7B36DBS: Database Systems Practical Classes 01 and 02: Conceptual Modeling in ER and UML Martin Svoboda 21. and 28. 2. 2017 Faculty of Electrical Engineering, Czech Technical University

More information

Chapter 2: Entity-Relationship Model. Entity Sets. Entity Sets customer and loan. Attributes. Relationship Sets. A database can be modeled as:

Chapter 2: Entity-Relationship Model. Entity Sets. Entity Sets customer and loan. Attributes. Relationship Sets. A database can be modeled as: Chapter 2: Entity-Relationship Model Entity Sets Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema Reduction of an

More information

Premium POS Pizza Order Entry Module. Introduction and Tutorial

Premium POS Pizza Order Entry Module. Introduction and Tutorial Premium POS Pizza Order Entry Module Introduction and Tutorial Overview The premium POS Pizza module is a replacement for the standard order-entry module. The standard module will still continue to be

More information

CSIT5300: Advanced Database Systems

CSIT5300: Advanced Database Systems CSIT5300: Advanced Database Systems L01: Entity Relationship (ER) Model Dr. Kenneth LEUNG Department of Computer Science and Engineering The Hong Kong University of Science and Technology Hong Kong SAR,

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

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

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

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd. The Entity- Relationship Model CS 186 Fall 2002: Lecture 2 R &G - Chapter 2 A relationship, I think, is like a shark, you know? It has to constantly move forward or it dies. And I think what we got on

More information

SOFTWARE ENGINEERING Prof.N.L.Sarda Computer Science & Engineering IIT Bombay. Lecture #10 Process Modelling DFD, Function Decomp (Part 2)

SOFTWARE ENGINEERING Prof.N.L.Sarda Computer Science & Engineering IIT Bombay. Lecture #10 Process Modelling DFD, Function Decomp (Part 2) SOFTWARE ENGINEERING Prof.N.L.Sarda Computer Science & Engineering IIT Bombay Lecture #10 Process Modelling DFD, Function Decomp (Part 2) Let us continue with the data modeling topic. So far we have seen

More information

Guidebook ONLINE ORDERING MADE EASY!

Guidebook ONLINE ORDERING MADE EASY! www.boltsupply.com Guidebook ONLINE ORDERING MADE EASY! ONLINE ORDERING MADE EASY! www.boltsupply.com Guidebook Here are some of the highlights of the new boltsupply.com New Home Page It s now easier than

More information

Using Data Model Patterns to Build High Quality Data Models

Using Data Model Patterns to Build High Quality Data Models Using Data Model Patterns to Build High Quality Data Models Alexander Lubyansky Analyst, Project Performance Corporation Abstract The creation of high quality data models is critically important to IT

More information

DATABASE DEVELOPMENT (H4)

DATABASE DEVELOPMENT (H4) IMIS HIGHER DIPLOMA QUALIFICATIONS DATABASE DEVELOPMENT (H4) Friday 3 rd June 2016 10:00hrs 13:00hrs DURATION: 3 HOURS Candidates should answer ALL the questions in Part A and THREE of the five questions

More information

Data Modeling with the Entity Relationship Model. CS157A Chris Pollett Sept. 7, 2005.

Data Modeling with the Entity Relationship Model. CS157A Chris Pollett Sept. 7, 2005. Data Modeling with the Entity Relationship Model CS157A Chris Pollett Sept. 7, 2005. Outline Conceptual Data Models and Database Design An Example Application Entity Types, Sets, Attributes and Keys Relationship

More information

The Relational Model

The Relational Model The Relational Model What is the Relational Model Relations Domain Constraints SQL Integrity Constraints Translating an ER diagram to the Relational Model and SQL Views A relational database consists

More information

Intro to DB CHAPTER 6

Intro to DB CHAPTER 6 Intro to DB CHAPTER 6 DATABASE DESIGN &THEER E-R MODEL Chapter 6. Entity Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity Sets Extended E-R Features Design of

More information

CS 405G: Introduction to Database Systems

CS 405G: Introduction to Database Systems CS 405G: Introduction to Database Systems Entity Relationship Model Jinze Liu 9/11/2014 1 CS685 : Special The UNIVERSITY Topics in Data of Mining, KENTUCKY UKY Review A database is a large collection of

More information

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram

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

DATABASE TECHNOLOGY - 1DL124

DATABASE TECHNOLOGY - 1DL124 1 DATABASE TECHNOLOGY - 1DL124 Summer 2007 An introductury course on database systems http://user.it.uu.se/~udbl/dbt-sommar07/ alt. http://www.it.uu.se/edu/course/homepage/dbdesign/st07/ Kjell Orsborn

More information