Entity Relationships and Normalization

Slides:



Advertisements
Similar presentations
Documenting Database Designs with Entity- Relationship Diagrams IS 460 Notes by Thomas Hilton.
Advertisements

Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
CSCI 260 Database Applications Chapter 1 – Getting Started.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
CSCI 150 Database Applications Chapter 1 – Getting Started.
Relational Model Stores data as tables –Each column contains values about the same attribute –Each column has a distinct name –Each row contains values.
Entity-Relationship Model and Diagrams (continued)
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
FIS 431/631 Financial Information Systems: Analysis and Design ERD & Normalization Joe Callaghan Oakland University Department of Accounting & Finance.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Systems Analysis I Data Flow Diagrams
N. J. Taylor Database Management Systems (DBMS) 1.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Concepts and Terminology Introduction to Database.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Module III: The Normal Forms. Edgar F. Codd first proposed the process of normalization and what came to be known as the 1st normal form. The database.
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
IST 210: ORGANIZATION OF DATA Chapter 1. Getting Started IST210 1.
Data Models and Relational Databases Chapter 2. Learning Objectives Identify primary and foreign keys for each entity and relevant relationships in the.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Database Design – Lecture 8
Relational Theory and Design
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
What is an Entity Relationship Diagram?. An Entity Relationship Diagram is a graphic that is speacialized to illustrate or give examples of the inter.
1 © Prentice Hall, 2002 ITD1312 Database Principles Chapter 4B: Logical Design for Relational Systems -- Transforming ER Diagrams into Relations Modern.
Chapter 3: Relational Databases
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
Lecture 4: Logical Database Design and the Relational Model 1.
Chapter 1. Getting Started IST 210: Organization of Data IST2101.
Database Design Chapters 17 and 18.
CompSci 280 S Introduction to Software Development
New Perspectives on Microsoft Access 2016
CSIS 115 Database Design and Applications for Business
Logical Database Design and the Rational Model
Implementing an REA Model in a Relational Database
Revised: 2 April 2004 Fred Swartz
Chapter 4 Logical Database Design and the Relational Model
Chapter 9 Part-1: Concepts & Foreign Keys
Information Systems Today: Managing in the Digital World
Implementing an REA Model in a Relational Database
and Defining Table Relationships
Chapter 5: Logical Database Design and the Relational Model
Database Management Systems (DBMS)
Chapter 12 Information Systems.
CSCI-100 Introduction to Computing
Implementing an REA Model in a Relational Database
Translation of ER-diagram into Relational Schema
Entity-Relationship Model and Diagrams (continued)
Chapter 9 Designing Databases
Relational Model and ER Model: in a Nutshell
Accounting System Design
Relational Database.
The 1:M Relationship (continued)
Database Fundamentals
Chapter 9 Part-1: Concepts & Foreign Keys
MIS2502: Data Analytics Relational Data Modeling
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Normalization of Database Tables Uploaded by: mysoftbooks.ml
Database Design Chapters 17 and 18.
Database solutions Chosen aspects of the relational model Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology.
Accounting System Design
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Chengyu Sun California State University, Los Angeles
Databases 1.
Database Design Week 12.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Presentation transcript:

Entity Relationships and Normalization

Data Stores-Specific Diagrams Included on both Flowcharts and DFDs There are also rules related to data stores. For example Can there be multiple invoices with the same number? Can a customer have more than one address? Can an address belong to more than one customer?

Relationships within the Relational Database Maximum Cardinality (the “outside” symbols) 1:M relationship M:N relationships 1:1 relationship Minimum Cardinality (the “inside” symbols) 0  optional |  mandatory

Logical Physical “Key” terms An entity is something of importance to a user that needs to be represented in a database. An entity represents one theme or topic and is represented by a table. The table dimensions, like a matrix, consist of rows (tuples) and columns (attributes). A table may be related to other tables (i.e., a relationship). Logical Physical

Relationship Key Example Project Proj_Num Proj_Name MgrID Manager MgrID MgrName Primary Key Relationship Foreign Key

Problems with Lists: Redundancy In a list, each row is intended to stand on its own. As a result, the same information may be entered several times (i.e., redundancy)

Problems with Lists: Multiple Themes In a list, each row may contain information on more than one “theme”. As a result, needed information may appear in the lists only if information on other themes is also present This table includes information on the Sales Order, Items, and Customer Inter. Bicycle Sales information would not be available without SO #1013

List Modification Issues Redundancy and multiple themes create modification problems Deletion problems If we delete SO #1013 we lose our customer IBS Update problems If customer “Bikes Et Cetera” changes its name we have to make sure we change it in every single row. Insertion problems If we want to add a new customer, we must either wait until they place an order or (worse) make up a bogus sales order

List Modification Issues DELETE No SO #1013, no IBS UPDATE Need to change Et Cetera to etc. INSERT Blank fields may cause problems later Nolan J. Taylor - A337

Relational Databases A relational database stores information in tables. Each informational theme is stored in its own table In essence, a relational database will break-up a list into several parts. One part for each theme in the list This is similar to a Web page Rather than paste the information from another source into our page, it can be linked instead. The updates are done on the linked page. We just need to make sure that our link to it is valid