Relational Databases Chapter 4.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Accounting System Design
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Chapter 14 Organizing and Manipulating the Data in Databases
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 96 C HAPTER 4 Relational Databases.
Accounting Databases Chapter 2 The Crossroads of Accounting & IT
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
BUSINESS DRIVEN TECHNOLOGY
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Relational Databases Chapter 4.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 4 Relational Databases.
Chapter 4 Relational Databases and Enterprise Systems
Relational Databases Chapter 4.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Chapter 4 The Relational Model Pearson Education © 2014.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Acct 316 Acct 316 Acct 316 Relational Databases 4 UAA – ACCT 316 Accounting Information Systems Dr. Fred Barbee Chapter.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
 Definition  Components  Advantages  Limitations Contents  DBMS DBMS  Functions Functions  Architecture Architecture.
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
311: Management Information Systems Database Systems Chapter 3.
Chapter 6.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Accounting Information Systems 9 th Edition Marshall.
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
Storing Organizational Information - Databases
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Data Resource Management.
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
CHAPTER 3 DATABASES AND DATA WAREHOUSES. 2 OPENING CASE STUDY Chrysler Spins a Competitive Advantage with Supply Chain Management Software Chapter 2 –
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Core Concepts of ACCOUNTING INFORMATION SYSTEMS Moscove, Simkin & Bagranoff John Wiley & Sons, Inc. Developed by: S. Bhattacharya, Ph.D. Florida Atlantic.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Foundations of Business Intelligence: Databases and Information Management.
CHAPTER 4 Relational Databases. Learning Objectives Explain the importance and advantages of databases Describe the difference between database systems.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
Chapter 3: Relational Databases
Chapter 4 The Relational Model Pearson Education © 2009.
RELATIONAL DATABASES SYSTEMS Unit 3. This unit shift attention to database as an important component of AIS. Understanding the fundamentals of database.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Managing Data Resources File Organization and databases for business information systems.
Fundamental of Database Systems
Intro to MIS – MGS351 Databases and Data Warehouses
Relational Databases Chapter 4.
Chapter 4 Relational Databases
Databases and Data Warehouses Chapter 3
Databases and Information Management
Basic Concepts in Data Management
Chapter 5 Data Resource Management.
Data Model.
Databases and Information Management
Accounting Information Systems 9th Edition
Relational Databases Chapter 4.
Presentation transcript:

Relational Databases Chapter 4

Learning Objectives Explain the importance and advantages of databases, as well as the difference between database and file-based legacy systems. Explain the difference between logical and physical views of a database. Explain fundamental concepts of database systems such as DBMS, schemas, the data dictionary, and DBMS languages. Describe what a relational database is and how it organizes data. Create a set of well-structured tables to properly store data in a relational database. Perform simple queries using the Microsoft Access database.

What Is a Database? Efficiently and centrally coordinates information for a related group of files A file is a related group of records A record is a related group of fields A field is a specific attribute of interest for the entity (record)

Advantages of Databases Data is integrated and easy to share Minimize data redundancy Data is independent of the programs that use the data Data is easily accessed for reporting and cross- functional analysis

Database Users and Designers Different users of the database information are at an external level of the database. These users have logical views of the data. At an internal level of the database is the physical view of the data which is how the data is actually physically stored in the system. Designers of a database need to understand user’s needs and the conceptual level of the entire database as well as the physical view.

Database Design To design a database, you need to have a conceptual view of the entire database. The conceptual view illustrates the different files and relationships between the files. The data dictionary is a “blueprint” of the structure of the database and includes data elements, field types, programs that use the data element, outputs, and so on.

DBMS Languages Data Definition Language (DDL) Builds the data dictionary Creates the database Describes logical views for each user Specifies record or field security constraints Data Manipulation Language (DML) Changes the content in the database Creates, updates, insertions, and deletions Data Query Language (DQL) Enables users to retrieve, sort, and display specific data from the database

Relational Database Represents the conceptual and external schema as if that “data view” were truly stored in one table. Although the conceptual view appears to the user that this information is in one big table, it really is a set of tables that relate to one another.

Conceptual View Example Customer Name Sales Invoice # Invoice Total D. Ainge 101 $1,447 G. Kite 102 $4,394 103 $ 898 104 $ 789 F. Roberts 105 $3,994

Relational Data Tables

Relational Data Tables Primary Keys Foreign Key (Customer # is a Foreign key in the Sales Table because it is a Primary key that uniquely identifies Customers in the Customer Table). Because of this, the Sales Table can relate to the Customer Table (see red arrow above).

Why Have a Set of Related Tables? Data stored in one large table can be redundant and inefficient causing the following problems: Update anomaly Insert anomaly Delete anomaly

Relational Database Design Rules Every column in a row must be single valued Primary key cannot be null (empty) also known as entity integrity IF a foreign key is not null, it must have a value that corresponds to the value of a primary key in another table (referential integrity) All other attributes in the table must describe characteristics of the object identified by the primary key Following these rules allows databases to be normalized and solves the update, insert, and delete anomalies.

Queries Users may want specific information found in a relational database and not have to sort through all the files to get that information. So they query (ask a question) the data. An example of a query might be: What are the invoices of customer D. Ainge and who was the salesperson for those invoices?

Creating the Query 4-15

Query Answer

Key Terms External-level schema Database Subschema Internal-level schema Data dictionary Data definition language (DDL) Data manipulation language (DML) Data query language (DQL) Report writer Data model Relational data model Tuple Primary key Foreign key Database Database management system (DBMS) Database system Database administrator (DBA) Data warehouse Business intelligence Online analytical processing (OLAP) Data mining Record layout Logical view Physical view Schema Conceptual-level schema

Key Terms (continued) Update anomaly Insert anomaly Delete anomaly Relational database Entity integrity rule Referential integrity rule Normalization Semantic data modeling