The Database Approach u Emphasizes the integration of data across the organization.

Slides:



Advertisements
Similar presentations
1 Logical Database Design and the Relational Model Modern Database Management.
Advertisements

Monash University Week 7 Data Modelling Relational Database Theory IMS1907 Database Systems.
Systems Development Life Cycle
© 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.
© 2005 by Prentice Hall Chapter 3a Database Design Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Logical Database Design and the Relational Model (part 1)
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Chapter 4: Logical Database Design and the Relational Model
© 2007 by Prentice Hall 1 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 8 th Edition Jeffrey A. Hoffer, Mary B.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
10-1 Chapter 10 Designing Databases Modern Systems Analysis and Design Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
1 C omputer information systems Design Instructor: Mr. Ahmed Al Astal IGGC1202 College Requirement University Of Palestine.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Chapter 4: Logical Database Design and the Relational Model (Part II)
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 2 Slide 1 Chapter 10 Designing Databases.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Concepts and Terminology Introduction to Database.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Chapter 5: Logical Database Design and the Relational Model
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
Logical Database Design Relational Model. Logical Database Design Logical database design: process of transforming conceptual data model into a logical.
SALINI SUDESH. Primarily a tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, Modified by Dr. Mathis 3-1 David M. Kroenke’s Chapter Three: The Relational.
Normalization Well structured relations and anomalies Normalization First normal form (1NF) Functional dependence Partial functional dependency Second.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Object-Relational Modeling. What Is a Relational Data Model? Based on the concept of relations (tables of data) Relationships established by matching.
Unit 4 Object Relational Modeling. Key Concepts Object-Relational Modeling outcomes and process Relational data model Normalization Anomalies Functional.
11/07/2003Akbar Mokhtarani (LBNL)1 Normalization of Relational Tables Akbar Mokhtarani LBNL (HENPC group) November 7, 2003.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
© 2005 by Prentice Hall 1 The Database Development Process Dr. Emad M. Alsukhni The Database Development Process Dr. Emad M. Alsukhni Modern Database Management.
CS263 Lecture 5: Logical Database Design Can express the structure of a relation by a Tuple, a shorthand notation Name of the relation is followed (in.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
Logical Database Design and the Relational Model.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part c): Logical Database Design and the Relational Model Modern Database Management.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Chapter 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
Logical Database Design and the Relational Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Normalization Hour1,2 Presented & Modified by Mahmoud Rafeek Alfarra.
6-1 © Prentice Hall, 2007 Topic 6: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 3: LOGICAL DATABASE.
Chapter 5 MODULE 6: Normalization © 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Prepared by: KIM GASTHIN M. CALIMQUIM.
© 2007 by Prentice Hall 1 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 8 th Edition Jeffrey A. Hoffer, Mary B.
8-1 © Prentice Hall, 2007 Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Chapter 4, Part A: Logical Database Design and the Relational Model
Lecture 4: Logical Database Design and the Relational Model 1.
Logical Database Design and Relation Data Model Muhammad Nasir
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Chapter 4 © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter 4: Logical Database Design and the Relational Model Modern Database Management.
Lecture # 17 Chapter # 10 Normalization Database Systems.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 4: PART C LOGICAL.
Logical Design & the Relational Model
Getting started with Accurately Storing Data
Chapter 8: Object-Relational Modeling
Logical Database Design and the Rational Model
Normalization Karolina muszyńska
Example Question–Is this relation Well Structured? Student
Unit 4: Normalization of Relations
Database Systems Instructor Name: Lecture-12.
Chapter 9 Designing Databases
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Normalization Referential Integrity
Chapter 10 Designing Databases
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Presentation transcript:

The Database Approach u Emphasizes the integration of data across the organization

Components of Relational Model u Data structure: Represented in the form of tables with rows and columns u Data manipulation: Powerful operations (SQL) used to manipulate data stored in relations u Data integrity: Facilities are included to specify business rules that maintain the integrity of data when they are manipulated.

Relation u A named two-dimensional table of data. Each relation consists of a finite set of named columns and an arbitrary number of unnamed rows. Notation: RELATION NAME(Attribute1, Attribute2…) Example: EMPLOYEE(EmpID, Name, Dept, Salary)

Properties of Relations u Each relation (or table) has a unique name u Entries in columns are atomic (no repeating groups - single valued) u Entries in columns are from the same domain u Each row is unique (no duplicate rows) u The sequence of columns (left to right) is insignificant u The sequence of rows (top to bottom) is insignificant

Relational Keys u Allow storage and retrieval of a row of data based on stored values of that data u Primary Key: An attribute (or combination of attributes) that uniquely identify each row in a relation u Composite Key: A primary key that consists of more than one attribute

Foreign Key u An attribute in one table that is a primary key in another table. Purchase Order PO Date Vendor #Item # NameAddressBalance Vendor NameQOH Reord- Pt. Item PO # Vendor # Item # Foreign Keys

Integrity Constraints u Facilitate maintaining accurate data –Domain Constraints: the set of values that may be assigned to an attribute must be from the same domain »Domain name, meaning, data type, size/length, allowable values or ranges –Operational Constraints

Integrity Constraints –Entity Integrity: Every relation must have a primary key and the data values of that key are valid. »The primary key can never be null –Referential Integrity: Either each foreign key value must match a primary key value in the other relation or the foreign key value must be null

Referential Integrity Constraints Customer-ID Customer-Name Customer-Address Order-ID Order-Date Customer-ID Order-ID Product-ID Quantity Product-ID Product-Description Product-Finish Unit-Price On-Hand CUSTOMER ORDER ORDER LINE PRODUCT

Well Structured Relations u Minimum Redundancy u Users can insert, modify and delete row (instances) without errors or inconsistencies (Anomalies). –Anomalies: errors that may result when a user attempts to update a table that contains redundant data.

Anomalies u Insertion Anomaly u Deletion Anomaly u Modification or Update Anomaly

Sample Relation u Std_IDCrse_IDAddressCourse Grade First St.Psych B Second St.Psych A Third St.History C Fourth St.Physics A Fifth St.History B First St.Physics C Second St.History A

Insertion Anomaly Consider the relation on previous slide ENROLL(Std_ID, Crse_ID, Address, Grade) To add a new student you must supply both Std_ID and Crse_ID. This is an anomaly because the user should be able to insert a new student without supplying course data

Delete and Modification Anomalies u Deletion: If a particular student is deleted additional information about the courses taken are also lost u Modification: If the student’s address changes, the information must be entered in numerous rows

Another example of Anomalies Consider the relation SALES(Cust_ID,Name,Salesperson, Region) u Insertion: a new salesperson assigned to the north region cannot be entered until a customer is assigned u Deletion: if a customer is deleted so is info telling what region a salesperson is assigned u Modification: if a salesperson is reassigned to another region several rows need to be updated

What is the solution for these anomalies? Normalization Create Normalized Relations OR Create Well-Structured Relations