©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Accounting Information Systems 9 th Edition Marshall.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Chapter 12 File Processing and Data Management Concepts
Management Information Systems, Sixth Edition
Relational Databases Chapter 4.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 5-1 Accounting Information Systems 9 th Edition Marshall.
ETEC 100 Information Technology
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 95 C HAPTER 4 Relational Databases.
Chapter 14 Organizing and Manipulating the Data in Databases
Organizing Data & Information
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 96 C HAPTER 4 Relational Databases.
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
Introduction to Databases Transparencies
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 96 C HAPTER 4 Relational Databases.
Recording / Financing Fixed Asset Acquisition Human Resources Purchasing Revenue Traditional files approach: separate systems (Legacy Systems) Expenditure.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 96 C HAPTER 4 Relational Databases.
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.
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.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
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.
Acct 316 Acct 316 Acct 316 Relational Databases 4 UAA – ACCT 316 Accounting Information Systems Dr. Fred Barbee Chapter.
Database Design - Lecture 1
Chapter 2 CIS Sungchul Hong
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
Database Management Systems Accounting Information Systems, 5 th edition James A. Hall COPYRIGHT © 2007 Thomson South-Western, a part of The Thomson Corporation.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Accounting Information Systems 9th Edition
Concepts and Terminology Introduction to Database.
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
 2001 Prentice Hall Business Publishing, Accounting Information Systems, 8/E, Bodnar/Hopwood A field may be a single character or number, or it.
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.
Chapter 9 Database Systems Introduction to CS 1 st Semester, 2014 Sanghyun Park.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Core Concepts of ACCOUNTING INFORMATION SYSTEMS Moscove, Simkin & Bagranoff John Wiley & Sons, Inc. Developed by: S. Bhattacharya, Ph.D. Florida Atlantic.
1 Chapter 1 Introduction to Databases Transparencies.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 95 C HAPTER 4 Relational Databases.
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.
© 2008 Prentice Hall Business Publishing Accounting Information Systems, 11/e Romney/Steinbart1 of 96 C HAPTER 4 Relational Databases.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
Chapter 3: Relational Databases
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 1 Database Systems.
RELATIONAL DATABASES SYSTEMS Unit 3. This unit shift attention to database as an important component of AIS. Understanding the fundamentals of database.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Foundations of information systems : BIS 1202 Lecture 4: Database Systems and Business Intelligence.
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 95 C HAPTER 4 Relational Databases.
Relational Databases Chapter 4.
Introduction to Information Technology
Chapter 4 Relational Databases
Data Model.
Accounting Information Systems 9th Edition
Relational Databases Chapter 4.
Presentation transcript:

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Accounting Information Systems 9 th Edition Marshall B. Romney Paul John Steinbart

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-2 Relational Databases Chapter 4

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-3 Learning Objectives 1. Explain the difference between database and file-based legacy systems. 2. Describe what a relational database is and how it organizes data. 3. Explain the difference between logical and physical views of a database. 4. Create a set of well-structured tables to properly store data in a relational database.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-4 Introduction Ashton Fleming, the accountant for S&S, believes that the best way to provide Susan Gonzalez and Scott Perry with easy access to the information they need to run their business is to build S&S’s new AIS as a database system.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-5 Introduction Ashton decides to prepare a brief report for them addressing the following questions: What is a database system? What is a relational database system? How do you design a relational database?

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-6 Introduction This chapter explains what a database is and how it differs from a file-oriented system. It also describes the structure of a relational database system. The chapter concludes by discussing the basic steps involved in designing a database.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-7 Learning Objective 1 Explain the difference between database and file-based legacy systems.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-8 Databases For many years, companies created new files and programs each time an information need arose. This proliferation of master files created problems: 1 Often the same data was stored in two or more separate files. 2 The specific data values stored in the different files were not always consistent.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-9 Databases The database approach views data as an organizational resource that should be used by, and managed for, the entire organization, not just the originating department or function. Its focus is data integration and data sharing. Integration is achieved by combining master files into larger pools of data that can be accessed by many application programs.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-10 Types of Files Two basic types of files are used to store data. 1 The master file, which is conceptually similar to a ledger in a manual system. 2 The transaction file, which is conceptually similar to a journal in a manual system.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-11 Fundamental Data Storage Concepts and Definitions Accounts Receivable File 2 Entities 2 Records Attributes Customer Customer Credit number name Address limit Balance Data values 301ABC Co. Box 51, XYZ Co. Box 96,000 2,000 Individual fields

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-12 File-Oriented Approach Application program #2 Application program #1 File # 1 Item A Item B Item C File # 2 Item B Item D Item E

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-13 Database Approach Application program #3 Application program #2 Database management system Application program #1 Item A Item B Item C Item D Item E Database

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-14 Databases Database management system (DBMS) is the program that manages and controls access to the database. Database system is the combination of the database, the DBMS, and the application program that uses the database. Database administrator (DBA) is the person responsible for the database.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-15 Learning Objective 2 Describe what a relational database is and how it organizes data.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-16 Relational Databases A data model is an abstract representation of the contents of a database. The relational data model represents everything in the database as being stored in the form of tables. Technically, these tables are called relations.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-17 Relational Databases Each row in a relation, called a tuple, contains data about a specific occurrence of the type of entity represented by that table.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-18 Learning Objective 3 Explain the difference between logical and physical views of a database.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-19 Logical and Physical Views of Data A major advantage of database systems over file-oriented systems is that the database systems separate the logical and physical view of data. What is the logical view? It is how the user or programmer conceptually organizes and understands the data.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-20 Logical and Physical Views of Data What is the physical view? It refers to how and where the data are physically arranged and stored on disk, tape, CD-ROM, or other media. The DBMS controls the database so that users can access, query, or update it without reference to how or where the data are physically stored.

Logical and Physical Views of Data Past Due Accounts Name Balance Days Jones Perez Logical View User ALogical View User B Sales by Region Operating system DBMS database

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-22 Logical and Physical Views of Data What is program-data independence? It is the separation of the logical and physical views of data.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-23 Schemas What are schemas? A schema describes the logical structure of a database. There are three levels of schemas: 1 Conceptual-level schema 2 External-level schema 3 Internal-level schema

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-24 Schemas The conceptual-level schema is an organization-wide view of the entire database. The external-level schema consists of a set of individual user views of portions of the database, also referred to as a subschema. The internal-level schema provides a low-level view of the database.

Schemas rr Jones 210 Perez 100 xxxxxxx Mapping external level views to conceptual level schema InventorySalesCustomer Cash receipt Subschema ASubschema BSubschema C

Schemas Mapping conceptual level items to internal level descriptions InventorySalesCustomer Cash receipt Inventory Record Item number – integer (5), non-null, index = itemx Description – character (15)

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-27 The Data Dictionary What is a data dictionary? It contains information about the structure of the database. For each data element stored in the database, such as the customer number, there is a corresponding record in the data dictionary describing it.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-28 The Data Dictionary The data dictionary is often one of the first applications of a newly implemented database system. What are some inputs to the data dictionary? – records of any new or deleted data elements – changes in names, descriptions, or uses of existing data elements

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-29 The Data Dictionary What are some outputs of the data dictionary? – reports useful to programmers, database designers, and users of the information system What are some sample reports? – lists of programs in which a data item is used – lists of all synonyms for the data elements in a particular file

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-30 DBMS Languages Every DBMS must provide a means of performing the three basic functions: 1 Creating the database 2 Changing the database 3 Querying the database The sets of commands used to perform these functions are referred to as the data definition, data manipulation, and data query languages.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-31 DDL Language The data definition language (DDL) is used to... – build the data dictionary. – initialize or create the database. – describe the logical views for each individual user or programmer. – specify any limitations or constraints on security imposed on database record or fields.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-32 DML Language The data manipulation language (DML) is used for data maintenance. What does it include? – updating portions of the database – inserting portions of the database – deleting portions of the database

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-33 DQL Language The data query language (DQL) is used to interrogate the database. The DQL retrieves, sorts, orders, and presents subsets of the database in response to user queries.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-34 Learning Objective 4 Create a set of well-structured tables to properly store data in a relational database.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-35 Basic Requirements of the Relational Data Model 1 Primary keys must be unique. 2 Every foreign key must either be null or have a value corresponding to the value of a primary key in another relation. 3 Each column in a table must describe a characteristic of the object identified by the primary key.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-36 Basic Requirements of the Relational Data Model 4 Each column in a row must be single- valued. 5 The value in every row of a specific column must be of the same data type. 6 Neither column order nor row order is significant.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-37 Anomalies That May Occur in Non-Normalized Relational Tables Update Anomaly: When changes (updates) to data values are not correctly recorded. Instead of having to update once, each record in the single table has to be updated individually in order to avoid inconsistencies in the database.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-38 Anomalies That May Occur in Non-Normalized Relational Tables Insert Anomaly: There is no way to store information about one entity in the database without it being associated with another entity In the text, we would not be able to store information on new customers without they being associated with transactions first!

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-39 Anomalies That May Occur in Non-Normalized Relational Tables Delete Anomaly: Unintended results arising from deleting a row of data pertaining to one entity and resulting in the deletion of data regarding another entity as well. In the text, if a particular Inventory item were discontinued and hence removed from the database table, we would lose information on the customer associated with that inventory item as well.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-40 Database Design Objectives Completeness Relevance Accessibility Up-to-dateness flexibility Efficiency Cost-effectiveness Integrity Security

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-41 Approaches to Database Design Normalization Starts with the assumption that all data is initially stored in a large non-normalized table. This table is then decomposed using a set of normalization rules to create a set of tables in the Third Normal Form. Semantic Data Modeling The database designer uses his/her knowledge about the business structure to create a set of relational tables.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-42 Database Systems and the Future of Accounting Database systems have the potential to significantly alter the nature of external reporting. Perhaps the most significant effect of database systems will be in the way that accounting information is used in decision making.

©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-43 End of Chapter 4