IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.

Slides:



Advertisements
Similar presentations
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Advertisements

Accounting System Design
Modeling the Data: Conceptual and Logical Data Modeling
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Relations The Relational Data Model John Sieg, UMass Lowell.
Accounting 6500 Relational Databases: Accounting Applications Introduction to Normalization.
© 2005 by Prentice Hall 1 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B.
Concepts of Database Management Sixth Edition
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.
Normalization of Database Tables
Bad DB Design Duplicate of data Duplicate of data Updating Updating Deleting Deleting.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Case study Lisa’s Bookstore IST210.
WJEC Applied ICT Databases – Attributes & Entities Entities A database contains one or more related tables. Each table holds all of the information.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Database Architecture The Relational Database Model.
Mapping ERM to relational database
Introduction to Databases
Chapter 7 Logical Database Design
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Module Title? DBMS E-R Model to Relational Model.
Relational Model Session 6 Course Name: Database System Year : 2012.
SQL Normalization Database Design Lecture 5. Copyright 2006Page 2 SQL Normalization Database Design 1 st Normal Form 1 st Normal Form 2 nd Normal Form.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Concepts and Terminology Introduction to Database.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
Logical Database Design Relational Model. Logical Database Design Logical database design: process of transforming conceptual data model into a logical.
PLUG IT IN 3 Fundamentals of Relational Database Operations.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
1 A Guide to MySQL 2 Database Design Fundamentals.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, modified by Dr. Lyn Mathis 5-1 David M. Kroenke’s, 10 th ed. Chapter.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
IST 220 Introduction to Databases Course Wrap-up.
IE 423 – Design of Decision Support Systems Data modeling and database development.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
IST 220 – Intro to Databases Lecture 3 Database Design Guidelines.
Relational Theory and Design
SQL LANGUAGE and Relational Data Model TUTORIAL Prof: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Normalizing Your Database CPT 242. Normalization The procedure where the developer analyzes the data and establishes the table structure to create the.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
IS 320 Notes for April 15, Learning Objectives Understand database concepts. Use normalization to efficiently store data in a database. Use.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Logical Database Design and the Relational Model.
Database Design Chapter 9 Part-1: Concepts & Foreign Keys 1.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer.
IE 423 – Design of Decision Support Systems Data modeling and database development.
Lecture 4: Logical Database Design and the Relational Model 1.
Logical Database Design and Relation Data Model Muhammad Nasir
Databases Introduction - concepts. Concepts of Relational Databases.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Logical Database Design and Relational Data Model Muhammad Nasir
Data Modeling AND ER MODELS.
Chapter 4 The Relational Model Pearson Education © 2009.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Understanding Data Storage
Revised: 2 April 2004 Fred Swartz
Relational Model and ER Model: in a Nutshell
Chapter 3 The Relational Model.
IST 318 Database Administration
IST 318 Database Administration
Chapter 3 The Relational Model
Presentation transcript:

IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling

 We have used several DBs with a Relational design:  Tables each dedicated to a single set of business entities, such as books, publishers, orders, etc.  Columns in a table define attributes of the entities  Rows store an occurrence of the entity set  The tables are (usually) related through PK-FK  Now it is time for us to discuss how to come up with a sound relational design DB Design

 A data model that encompasses the entire truth of data needs of the business is to be worked out first  A practical approach is ER modeling, where  E or entity is something exists in the business domain and can be described by relevant attributes  R or relationship defines how entities are associated with one another  ERM depicts a business-oriented view of information Basic Concepts

 Attributes share some common properties  Each allows for a specific type and valid range of values  Each may or may not allow for a NULL value  But some attributes are keys that identify entities or define relationships between them  Candidate key:  Primary key:  Foreign key: Types of Attributes

 Cardinality  One-to-one  One-to-many or many-to-one  Many-to-many  Notations Types of Relationships ISBN Title … Book AuthorID FName LName Author * *

 General rules for transforming ERM into tables  Each entity set becomes a table, with  Each attribute being a column  A primary key assigned to each table  Candidate key and not null constrains possible  A foreign key added to tables on the many side of a one-to- many relationship by copying PK from table on the one side  An additional (junction) table is needed for each many- to-many relationship, with  FKs copied from both related tables  A PK formed by both FKs From ERM to Relational Design

 Normalization: to reduce duplication and to optimize design by placing attributes to the right tables  Normal forms: 1 st thru 3 rd NFs are required for each table for practical purposes  1NF: a row is in 1NF if and only if all underlying column domains contain atomic values only  Eliminates repeating groups and non-atomic data (i.e. multi-part values like name, address) from an entity Rules for Good Design All possible forms 1NF

 2NF: a row is in 2NF if and only if it’s in 1NF and every non-key attribute is fully dependent on the key  Ensures that all the attributes of each entity are dependent on the PK  3NF: a row is in 3NF if and only if it’s in 2NF and every non-key attribute is non-transitively dependent on the primary key  Ensures that no relationships between attributes within an entity Rules for Good Design (cont’d) All possible forms 1NF 2NF 3NF