Chapter 5 The Relational Database Model: Introduction

Slides:



Advertisements
Similar presentations
Chapter 15 Creating Database Forms and Reports Introduction Forms Reports.
Advertisements

Chapter 5: Database Forms and Reports
© Copyright 2011 John Wiley & Sons, Inc.
© Copyright 2011 John Wiley & Sons, Inc.
ACCOUNTING INFORMATION SYSTEMS
Chapter Chapter 13-2 Chapter 13 Data Modeling Introduction An Overview of Databases Steps in Creating a Database Using Rea Creating Database Tables.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
Chapter 14 Organizing and Manipulating the Data in Databases
Chapter 101 Information Technology For Management 6 th Edition Turban, Leidner, McLean, Wetherbe Lecture Slides by L. Beaubien, Providence College John.
Chapter 3: Data Modeling
ACCOUNTING INFORMATION SYSTEMS
Chapter 3 Data Modeling Fundamentals of Database Management Systems by
2-1 Information Technologies Concepts and Management.
Accounting Information Systems, 1st Edition
Introduction to Databases
Chapter 7 Logical Database Design
Chapter 4 The Database Management System Concept
Chapter 6 The Relational Database Model: Additional Concepts
Introduction to Databases Chapter 1: Introducing Data and Data Management.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 11: Data Management Layer Design Alan Dennis, Barbara.
Chapter 3 The Database Management System Concept
Chapter 10 Object-Oriented Database Management
Introduction to Databases Chapter 7: Data Access and Manipulation.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Introduction to Information Technology, 2 nd Edition Turban, Rainer & Potter © 2003 John Wiley & Sons, Inc. 5-1 Introduction to Information Technology.
Chapter 31 The Value of Implementing Quality Chapter 3 Achieving Quality Through Continual Improvement Claude W. Burrill / Johannes Ledolter Published.
Fundamentals of Database Management Systems, 2nd ed
Today’s Agenda  Any questions about the assignment (due Mon)?  Quiz  Quiz review  Homework for Friday:  Watch the two videos on the Coursera db website.
15-1 Chapter 15 Building Communities Applying Innovation By David O’Sullivan and Lawrence Dooley © Sage Publications 2008.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Systems.
Chapter 8 Physical Database Design
Chapter Chapter 13-2 Accounting Information Systems, 1 st Edition Data and Databases.
Chapter 101 The Design Process Chapter 10 Achieving Quality Through Continual Improvement Claude W. Burrill / Johannes Ledolter Published by John Wiley.
Core Concepts of ACCOUNTING INFORMATION SYSTEMS Moscove, Simkin & Bagranoff John Wiley & Sons, Inc. Developed by: Marianne Bradford, Ph.D. Bryant College.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved
Database Concepts. Data :Collection of facts in raw form. Information : Organized and Processed data is information. Database : A Collection of data files.
Introduction to Information Technology, 2nd Edition Turban, Rainer & Potter © 2003 John Wiley & Sons, Inc. 8-1 Introduction to Information Technology Chapter.
“Copyright © 2001 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Slide 1-1 Chapter 1 Terms Information Systems Overview Introduction to Information Systems Judith C. Simon.
Chapter 10 Structuring Organizations Management 1e Management 1e Management 1e - 2 Management 1e Learning Objectives  Explain how.
Core Concepts of ACCOUNTING INFORMATION SYSTEMS Moscove, Simkin & Bagranoff John Wiley & Sons, Inc. Developed by: S. Bhattacharya, Ph.D. Florida Atlantic.
Chapter 4-1. Chapter 4-2 Chapter 4: Data Modeling Introduction An Overview of Databases Steps in Creating a Database Using REA Creating Database Tables.
Slide 1-1 Chapter 1 Information Systems Overview Introduction to Information Systems Judith C. Simon.
Slide 5-1 Chapter 5 Terms Applications Software for Business Introduction to Information Systems Judith C. Simon.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
Copyright 2004 John Wiley & Sons, Inc Information Technology: Strategic Decision Making For Managers Henry C. Lucas Jr. John Wiley & Sons, Inc Dinesh.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Operations Management - 5 th Edition Chapter 10 Supplement Roberta.
Introduction to Information Technology Turban, Rainer and Potter John Wiley & Sons, Inc. Copyright 2005.
Slide 8-1 Chapter 8 Terms Programming Languages Introduction to Information Systems Judith C. Simon.
Chapter 171 Information Technology For Management 6 th Edition Turban, Leidner, McLean, Wetherbe Lecture Slides by L. Beaubien, Providence College John.
A- 1. A- 2 Appendix B Standards of Ethical Conduct for Management Accountants The Institute of Management Accountants has published and promoted the following.
K-1. K-2 Appendix K Standards of Ethical Conduct for Management Accountants The Institute of Management Accountants has published and promoted the following.
Slide 11-1 Chapter 11 Terms Information Resource Management Strategies Introduction to Information Systems Judith C. Simon.
I-1. I-2 I ACCOUNTING FOR SOLE PROPRIETORSHIPS Accounting, Fifth Edition.
H-1 Prepared by Coby Harmon University of California, Santa Barbara Westmont College.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
“Copyright © 2001 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976.
Chapter 41 People and Quality Chapter 4 Achieving Quality Through Continual Improvement Claude W. Burrill / Johannes Ledolter Published by John Wiley.
CSE202 Database Management Systems
Systems Analysis and Design
Physical Changes That Don’t Change the Logical Design
Introduction to Information Technology
Systems Analysis and Design 5th Edition Chapter 8. Architecture Design
Transportation and Transshipment Models
Copyright © 2000 John Wiley & Sons, Inc. All rights reserved
ACCOUNTING INFORMATION SYSTEMS
ACCOUNTING INFORMATION SYSTEMS
Presentation transcript:

Chapter 5 The Relational Database Model: Introduction Fundamentals of Database Management Systems, 2nd ed. by Mark L. Gillenson, Ph.D. University of Memphis John Wiley & Sons, Inc.

Chapter Objectives Explain why the relational database model became practical in about 1980. Define such basic relational database terms as relation and tuple. Describe the major types of keys including primary, candidate, and foreign.

Chapter Objectives Describe how one-to-one, one-to-many, and many-to-many binary relationships are implemented in a relational database. Describe how relational data retrieval is accomplished in concept with the select, project, and join operators. Understand how the join operator facilitates data integration in relational database.

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 viable relational database management systems became available.

Relational Database Model While relational database was very tempting in concept in the 1970s, it was not easily applicable in a real-world environment for reasons related to performance. The earlier hierarchical and network database management systems were just coming onto the commercial scene and were the focus of intense marketing efforts by the software and hardware vendors.

The Relational Database Concept Data appears to be stored in what we have been referring to as simple, linear files. Relational databases are based on mathematics. A relational database is a collection of relations that, as a group, contain the data that describes a particular business environment.

Relational Terminology Relations - what we have been referring to as simple linear files. Also called tables. Row = record (files) = tuple (relation) Column = field (files) = attribute (relation)

Relational Database Terminology

File / Relation: Differences The columns of a relation can be arranged in any order without affecting the meaning of the data. This is not true of a file. The rows of a relation can be arranged in any order, which is not true of a file.

File / Relation: Differences Every row/column position (a cell) can have only a single value, which is not necessarily true in a file. No two rows of a relation are identical, which is not necessarily true in a file.

Primary Key A relation always has a unique primary key. A primary key (also called “the key”) is an attribute or a group of attributes whose values are unique throughout all of the rows of the relation.

Primary Key

Primary Key The number of attributes involved in the primary key is always the minimum number of attributes that provide the uniqueness quality. In the worst case, all of the relation’s attributes combined could serve as the primary key.

Candidate Key If a relation has more than one attribute or minimum group of attributes that represents a way of uniquely identifying the entities, then they are each called a candidate key. When there is more than one candidate key, one of them must be chosen to be the primary key of the relation.

Candidate Key Which candidate key to pick depends on the application using the database. Alternate key is a candidate key that was not chosen to be the primary key of the relation.

Foreign Key An attribute or group of attributes that serves as the primary key of one relation and also appears in another relation (foreign key in this relation).

Foreign Key Crucial in relational database, because the foreign key is the mechanism that ties relations together to represent unary, binary, and ternary relationships. Foreign key attribute must have same domain of values as Primary key attribute in other relation.

Domain of Values Two attributes have the same domain of values if the attributes have values of the same type. e.g., Salesperson Number in SALESPERSON and in CUSTOMER - three digit whole numbers that are the identifiers for salespersons.

Binary Relationships One-to-One One-to-Many Many-to-Many

One-to-Many Binary Relationship Salesperson Customer The Salesperson Number foreign key in the CUSTOMER relation effectively establishes the one-to-many relationship between salespersons and customers.

Foreign Key Can Be A Part of The Primary Key Customer Customer Employee

General Hardware Co.

Many-to-Many Binary Relationship Salesperson Product

Many-to-Many Relationship

Intersection Data

Many-to-Many Relationship Has its own relation in the database. Can have its own attributes. It is a kind of entity -- an Associative Entity

SALES Relation (modified) A Date attribute is required if the data may be stored two or more times in a year. A Time attribute is required if the data may be stored more than once in a day.

Unacceptable: Many-to-Many

SALES Relation (without intersection data)

One-to-One Binary Relationship

General Hardware Co. including OFFICE

General Hardware Co. including OFFICE Can SALESPERSON and OFFICE be combined into one relation?

Data Retrieval from a Relational Database The discussion thus far has concentrated on: how a relational database is structured loading a database with data Let’s discuss the effort to retrieve the data in a way that is helpful and beneficial to the business organization that built the database.

Relational DBMS Have the ability to accept high level data retrieval commands Process the commands against the database’s relations and return the desired data.

The Relational Select Operator Retrieves a horizontal slice of the relation. Select rows from the SALESPERSON relation in which Salesperson Number = 204. The result of a relational operation will always be a relation.

The Relational Project Operator Retrieves a vertical slice of the relation. Project the Salesperson Number and Salesperson Name over the SALESPERSON relation.

Extracting Data Across Multiple Relations: Data Integration A DBMS must be able to store data nonredundantly while also providing a data integration facility. Relational DBMSs automate the cross-relation data extraction process in such a way that it appears that the data in the relations is integrated while also remaining nonredundant.

Data Integration The relational algebra Join command. Join the SALESPERSON relation and the CUSTOMER relation, using the Salesperson Number of each as the join fields. Select rows from that result in which Customer Number = 1525. Project the Salesperson Name over that last result.

Terminology Cartesian Product - comparing every possible combination of two sets, or two relations. Equijoin - a join where two join field values are identical. Natural join - one of the two identical join columns is eliminated.

Good Reading Bookstores

World Music Association

Lucky Rent-A-Car

“Copyright 2004 John Wiley & Sons, Inc. All rights reserved “Copyright 2004 John Wiley & Sons, Inc. All rights reserved. Reproduction or translation of this work beyond that permitted in Section 117 of the 1976 United States Copyright Act without express permission of the copyright owner is unlawful. Request for further information should be addressed to the Permissions Department, John Wiley & Sons, Inc. The purchaser may make back-up copies for his/her own use only and not for distribution or resale. The Publisher assumes no responsibility for errors, omissions, or damages caused by the use of these programs or from the use of the information contained herein.”