SlideShare a Scribd company logo
1 of 41
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Accounting Information Systems, 8e
James A. Hall
Chapter 9
Database Management
Systems
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Objectives for Chapter 9
 Understand the operational problems inherent in the
flat-file approach to data management that gave rise
to the database concept.
 Understand the relationships among the defining
elements of the database environment.
 Understand the anomalies caused by unnormalized
databases and the need for data normalization.
 Be familiar with the stages in database design, including
entity identification, data modeling, constructing the
physical database, and preparing user views.
 Be familiar with the operational features of distributed
databases and recognize the issues that need to be
considered in deciding on a particular database
configuration.
2
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Flat-File Versus Database
Environments
 Computer processing involves two components:
data and instructions (programs).
 Conceptually, two methods for designing the
interface between program instructions and data:
 File-oriented processing
• A specific data file is created for each application.
 Data-oriented processing
• Create a single data repository to support numerous
applications.
 Disadvantages of file-oriented processing include
 redundant data and programs
 varying formats for storing the redundant data
3
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Flat-File Data Management
Program 1
Program 2
Program 3
A,B,C
X,B,Y
L,B,M
User 2
Transactions
User 1
Transactions
User 3
Transactions
Data
4
Figure 9-1
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Data Redundancy and Flat-File Problems
 Data Storage –
 creates excessive storage costs of paper
documents and/or magnetic form.
 Data Updating –
 any changes or additions must be performed
multiple times.
 Currency of Information –
 has the potential problem of failing to update all
affected files.
 Task-Data Dependency –
 user unable to obtain additional information as his
or her needs change
5
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Program 1
Program 2
Program 3
User 2
Transactions
User 1
Transactions
User 3
Transactions
Database
D
B
M
S
A,
B,
C,
X,
Y,
L,
M
The Database Concept
6
Figure 9-2(b)
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Advantages of the Database Approach
Data sharing/centralized database resolves flat-file
problems:
 No data redundancy:
 Data is stored only once, eliminating data redundancy and
reducing storage costs.
 Single update:
 Because data is in only one place, it requires only a single
update, reducing the time and cost of keeping the database
current.
 Current values:
 A change to the database made by any user yields current
data values for all other users.
 Task-data independence:
 As users’ information needs expand, the new needs can be
more easily satisfied than under the flat-file approach.
7
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Disadvantages of the Database Approach
 Can be costly to implement
 additional hardware, software, storage, and
network resources are required.
 Can only run in certain operating
environments
 may make it unsuitable for some system
configurations.
 Because it is so different from
the file-oriented approach, the database
approach requires training users
 may be inertia or resistance.
8
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
9
Elements of the Database Environment
Figure 9-3
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Internal Controls and DBMS
 The database management system stands
between the user and the database per se.
 Thus, commercial DBMSs (e.g., Access or
Oracle) actually consist of a database plus…
 software to manage the database, especially
controlling access and other internal controls
 software to generate reports, create data-entry
forms, etc.
 The DBMS has special software to control
which data elements each user is authorized
to access.
10
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
DBMS Features
 Program Development - user created
applications
 Backup and Recovery - copies database
 Database Usage Reporting - captures
statistics on database usage (who, when, etc.).
 Database Access - authorizes access to
sections of the database.
 Also…
 User Programs - makes the presence of the DBMS
transparent to the user.
 Direct Query - allows authorized users to access
data without programming.
11
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Data Definition Language (DDL)
 DDL is a programming language used to
define the database per se.
 It identifies the names and the relationship of all
data elements, records, and files that constitute
the database.
 DDL defines the database on three viewing
levels
 Internal view – physical arrangement of records
(1 view)
 Conceptual view (schema) – representation of
database (1 view)
 User view (subschema) – the portion of the
database each user views (many views)
12
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Overview of DBMS Operation
13
Figure 9-4
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Data Manipulation Language (DML)
 DML is the proprietary programming
language that a particular DBMS uses to
retrieve, process, and store data to / from
the database.
 Entire user programs may be written in the
DML, or selected DML commands can be
inserted into universal programs, such as
COBOL and FORTRAN.
 Can be used to ‘patch’ third party
applications to the DBMS
14
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Query Language
 permits end users and professional
programmers to access data in the database
without conventional programs.
 Possible internal control issue since users may be
making an ‘end run’ around the controls built into
the conventional programs
 IBM’s structured query language (SQL) has
emerged as the standard query language.
 Adopted by ANSI as the standard language for all
relational databases
15
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Functions of the DBA
16
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Database Conceptual Models
 Refers to the particular method used to
organize records in a database.
 a.k.a. “logical data structures”
 Objective: develop the database efficiently
so that data can be accessed quickly and
easily.
 There are three main models:
 hierarchical (tree structure)
 network
 relational
 Most existing databases are relational.
Some legacy systems use hierarchical or
network databases.
17
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
The Relational Model
 The relational model portrays data in the
form of two dimensional tables.
 Its strength is the ease with which tables
may be linked to one another.
 a major weakness of hierarchical and network
databases
 Relational model is based on the relational
algebra functions of restrict, project, and
join.
18
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
19
The Relational Algebra Functions
Restrict, Project, and Join
Figure 9-9
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Associations and Cardinality
 Association
 Represented by a line connecting two entities
 Described by a verb, such as ships, requests, or
receives
 Cardinality – the degree of association
between two entities
 The number of possible occurrences in one table
that are associated with a single occurrence in a
related table
 Used to determine primary keys and foreign keys
20
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
21
Examples of Entity Associations
Figure 9-11
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Properly Designed Relational Tables
 Each row in the table must be unique in at
least one attribute, which is the primary key.
 Tables are linked by embedding the primary key
into the related table as a foreign key.
 The attribute values in any column must all
be of the same class or data type.
 Each column in a given table must be
uniquely named.
 Tables must conform to the rules of
normalization, i.e., free from structural
dependencies or anomalies.
22
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Three Types of Anomalies
 Insertion Anomaly
 A new item cannot be added to the table until at
least one entity uses a particular attribute item.
 Deletion Anomaly
 If an attribute item used by only one entity is
deleted, all information about that attribute item is
lost.
 Update Anomaly
 A modification on an attribute must be made in
each of the rows in which the attribute appears.
 Anomalies can be corrected by creating
additional relational tables.
23
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Advantages of Relational Tables
 Removes all three types of anomalies.
 Various items of interest (customers,
inventory, sales) are stored in separate
tables.
 Space is used efficiently.
 Very flexible – users can form ad hoc
relationships.
24
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
The Normalization Process
 A process which systematically splits
unnormalized complex tables into smaller
tables that meet two conditions:
 all nonkey (secondary) attributes in the table are
dependent on the primary key
 all nonkey attributes are independent of the other
nonkey attributes
 When unnormalized tables are split and
reduced to third normal form, they must then
be linked together by foreign keys.
25
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Steps in the Normalization Process
26
Figure 9-34
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Accountants and Data Normalization
 Update anomalies can generate conflicting
and obsolete database values.
 Insertion anomalies can result in unrecorded
transactions and incomplete audit trails.
 Deletion anomalies can cause the loss of
accounting records and the destruction of
audit trails.
 Accountants should understand the data
normalization process and be able to determine
whether a database is properly normalized.
27
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Six Phases in Designing
Relational Databases
1. Identify entities
• identify the primary entities of the
organization
• construct a data model of their
relationships
2. Construct a data model showing
entity associations
• determine the associations between
entities
• model associations into an ER diagram
28
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Six Phases in Designing
Relational Databases
3. Add primary keys and attributes
• assign primary keys to all entities in the
model to uniquely identify records
• every attribute should appear in one or
more user views
4. Normalize and add foreign keys
• remove repeating groups, partial and
transitive dependencies
• assign foreign keys to be able to link tables
29
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Six Phases in Designing
Relational Databases
5. Construct the physical database
• create physical tables
• populate tables with data
6. Prepare the user views
• normalized tables should support all
required views of system users
• user views restrict users from having
access to unauthorized data
30
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Distributed Data Processing (DDP)
 Data processing is organized around several
information processing units (IPUs)
distributed throughout the organization.
 Each IPU is placed under the control of the end
user.
 DDP does not always mean total
decentralization.
 IPUs in a DDP system are still connected to one
another and coordinated.
 Typically, DDP’s use a centralized database.
 Alternatively, the database can be distributed,
similar to the distribution of the data processing
capability. 31
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Centralized Databases in DDP
Environment
 The data is retained in a central location.
 Remote IPUs send requests for data.
 Central site services the needs of the remote
IPUs.
 The actual processing of the data is performed
at the remote IPU.
32
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Advantages of DDP
 Cost reductions in hardware and data entry
tasks
 Improved cost control responsibility
 Improved user satisfaction since control is
closer to the user level
 Backup of data can be improved through the
use of multiple data storage sites
33
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Disadvantages of DDP
 Loss of control
 Mismanagement of resources
 Hardware and software incompatibility
 Redundant tasks and data
 Consolidating incompatible tasks
 Difficulty attracting qualified personnel
 Lack of standards
34
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Data Currency
 Occurs in DDP with a centralized
database
 During transaction processing, data will
temporarily be inconsistent as records are
read and updated.
 Database lockout procedures are
necessary to keep IPUs from reading
inconsistent data and from writing over a
transaction being written by another IPU.
35
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Distributed Databases:
Partitioning
 Splits the central database into segments
that are distributed to their primary users.
 Advantages:
 users’ control is increased by having data
stored at local sites.
 transaction processing response time is
improved.
 volume of transmitted data between IPUs is
reduced.
 reduces the potential data loss from a
disaster.
36
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
The Deadlock Phenomenon
 Especially a problem with
partitioned databases
 Occurs when multiple sites lock each
other out of data that they are currently
using.
 One site needs data locked by another site.
 Special software is needed to analyze and
resolve conflicts.
 Transactions may be terminated and
restarted.
37
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
The Deadlock Condition
38
Figure 9-26
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Distributed Databases: Replication
 The duplication of the entire database
for multiple IPUs
 Effective for situations with a high
degree of data sharing, but no
primary user
 Supports read-only queries
 Data traffic between sites is reduced
considerably.
39
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Concurrency Problems and
Control Issues
 Database concurrency is the presence of
complete and accurate data at all IPU sites.
 With replicated databases, maintaining
current data at all locations is difficult.
 Time stamping is used to serialize
transactions.
 Prevents and resolves conflicts created by
updating data at various IPUs.
40
Hall, Accounting Information Systems, 8e
©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part.
Distributed Databases and the
Accountant
 The following database options impact the
organization’s ability to maintain database
integrity, to preserve audit trails, and to have
accurate accounting records.
 Centralized or distributed data?
 If distributed, replicated or partitioned?
 If replicated, total or partial replication?
 If partitioned, what is the allocation of the data
segments among the sites?
41

More Related Content

What's hot

Chapter 6 foundations of business intelligence
Chapter 6 foundations of business intelligenceChapter 6 foundations of business intelligence
Chapter 6 foundations of business intelligenceVan Chau
 
Week 7 Database Development Process
Week 7 Database Development ProcessWeek 7 Database Development Process
Week 7 Database Development Processoudesign
 
Opetus Education ERP Database Design Concept
Opetus Education ERP Database Design ConceptOpetus Education ERP Database Design Concept
Opetus Education ERP Database Design ConceptGyani Feku
 
Automated Forms Delivary and Management
Automated Forms Delivary and ManagementAutomated Forms Delivary and Management
Automated Forms Delivary and ManagementRaghu Nandan
 
Fbdl enabling comprehensive_data_services
Fbdl enabling comprehensive_data_servicesFbdl enabling comprehensive_data_services
Fbdl enabling comprehensive_data_servicesCindy Irby
 
IRJET- Comparative Study of ETL and E-LT in Data Warehousing
IRJET- Comparative Study of ETL and E-LT in Data WarehousingIRJET- Comparative Study of ETL and E-LT in Data Warehousing
IRJET- Comparative Study of ETL and E-LT in Data WarehousingIRJET Journal
 
Data Archiving Reduced Payroll Processing Time
Data Archiving Reduced Payroll Processing Time Data Archiving Reduced Payroll Processing Time
Data Archiving Reduced Payroll Processing Time SAP_yash
 
Characteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management SystemCharacteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management SystemCharthaGaglani
 
Warehouse Planning and Implementation
Warehouse Planning and ImplementationWarehouse Planning and Implementation
Warehouse Planning and ImplementationSHIKHA GAUTAM
 
Application Retirement – Road Map for Legacy Applications
Application Retirement – Road Map for Legacy ApplicationsApplication Retirement – Road Map for Legacy Applications
Application Retirement – Road Map for Legacy ApplicationsLindaWatson19
 
Resume-kumar
Resume-kumarResume-kumar
Resume-kumarM Prem
 

What's hot (17)

Files Vs DataBase
Files Vs DataBaseFiles Vs DataBase
Files Vs DataBase
 
database ppt(2)
database ppt(2)database ppt(2)
database ppt(2)
 
Chapter 6 foundations of business intelligence
Chapter 6 foundations of business intelligenceChapter 6 foundations of business intelligence
Chapter 6 foundations of business intelligence
 
Week 7 Database Development Process
Week 7 Database Development ProcessWeek 7 Database Development Process
Week 7 Database Development Process
 
Opetus Education ERP Database Design Concept
Opetus Education ERP Database Design ConceptOpetus Education ERP Database Design Concept
Opetus Education ERP Database Design Concept
 
Automated Forms Delivary and Management
Automated Forms Delivary and ManagementAutomated Forms Delivary and Management
Automated Forms Delivary and Management
 
Fbdl enabling comprehensive_data_services
Fbdl enabling comprehensive_data_servicesFbdl enabling comprehensive_data_services
Fbdl enabling comprehensive_data_services
 
En ch01
En ch01En ch01
En ch01
 
IRJET- Comparative Study of ETL and E-LT in Data Warehousing
IRJET- Comparative Study of ETL and E-LT in Data WarehousingIRJET- Comparative Study of ETL and E-LT in Data Warehousing
IRJET- Comparative Study of ETL and E-LT in Data Warehousing
 
Data Archiving Reduced Payroll Processing Time
Data Archiving Reduced Payroll Processing Time Data Archiving Reduced Payroll Processing Time
Data Archiving Reduced Payroll Processing Time
 
Database Enviornment
Database EnviornmentDatabase Enviornment
Database Enviornment
 
Characteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management SystemCharacteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management System
 
Warehouse Planning and Implementation
Warehouse Planning and ImplementationWarehouse Planning and Implementation
Warehouse Planning and Implementation
 
Lec01
Lec01Lec01
Lec01
 
Application Retirement – Road Map for Legacy Applications
Application Retirement – Road Map for Legacy ApplicationsApplication Retirement – Road Map for Legacy Applications
Application Retirement – Road Map for Legacy Applications
 
PACE-IT: Supporting Configuration Management (part 2)
PACE-IT: Supporting Configuration Management (part 2)PACE-IT: Supporting Configuration Management (part 2)
PACE-IT: Supporting Configuration Management (part 2)
 
Resume-kumar
Resume-kumarResume-kumar
Resume-kumar
 

Similar to Pp 09-new

Database SystemsDesign, Implementation, and ManagementCo.docx
Database SystemsDesign, Implementation, and ManagementCo.docxDatabase SystemsDesign, Implementation, and ManagementCo.docx
Database SystemsDesign, Implementation, and ManagementCo.docxrandyburney60861
 
Fundamentals of DBMS
Fundamentals of DBMSFundamentals of DBMS
Fundamentals of DBMSAhmed478619
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbmsRituBhargava7
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptLisaMalar
 
Database AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docxDatabase AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docxwhittemorelucilla
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMSShubham Joon
 
LEGO EMBRACING CHANGE BY COMBINING BI WITH FLEXIBLE INFORMATION SYSTEM
LEGO EMBRACING CHANGE BY COMBINING BI WITH FLEXIBLE INFORMATION SYSTEMLEGO EMBRACING CHANGE BY COMBINING BI WITH FLEXIBLE INFORMATION SYSTEM
LEGO EMBRACING CHANGE BY COMBINING BI WITH FLEXIBLE INFORMATION SYSTEMmyteratak
 
Case4 lego embracing change by combining bi with flexible information system 2
Case4  lego embracing change by combining bi with flexible  information system 2Case4  lego embracing change by combining bi with flexible  information system 2
Case4 lego embracing change by combining bi with flexible information system 2dyadelm
 
Debate Initial Post and Response Rubric Student Name .docx
Debate Initial Post and Response Rubric Student Name     .docxDebate Initial Post and Response Rubric Student Name     .docx
Debate Initial Post and Response Rubric Student Name .docxsimonithomas47935
 
C4 delivering database as a service within your organization
C4   delivering database as a service within your organizationC4   delivering database as a service within your organization
C4 delivering database as a service within your organizationDr. Wilfred Lin (Ph.D.)
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management SystemA. S. M. Shafi
 
Complete dbms notes
Complete dbms notesComplete dbms notes
Complete dbms notesTanya Makkar
 

Similar to Pp 09-new (20)

Pp 11-new
Pp 11-newPp 11-new
Pp 11-new
 
Pp 14-new
Pp 14-newPp 14-new
Pp 14-new
 
Database SystemsDesign, Implementation, and ManagementCo.docx
Database SystemsDesign, Implementation, and ManagementCo.docxDatabase SystemsDesign, Implementation, and ManagementCo.docx
Database SystemsDesign, Implementation, and ManagementCo.docx
 
Fundamentals of DBMS
Fundamentals of DBMSFundamentals of DBMS
Fundamentals of DBMS
 
Powerpoint chap.9
Powerpoint chap.9Powerpoint chap.9
Powerpoint chap.9
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
 
Database AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docxDatabase AdministrationObjectivesDiscus.docx
Database AdministrationObjectivesDiscus.docx
 
Database & dbms
Database & dbmsDatabase & dbms
Database & dbms
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
 
LEGO EMBRACING CHANGE BY COMBINING BI WITH FLEXIBLE INFORMATION SYSTEM
LEGO EMBRACING CHANGE BY COMBINING BI WITH FLEXIBLE INFORMATION SYSTEMLEGO EMBRACING CHANGE BY COMBINING BI WITH FLEXIBLE INFORMATION SYSTEM
LEGO EMBRACING CHANGE BY COMBINING BI WITH FLEXIBLE INFORMATION SYSTEM
 
Pp 12-new
Pp 12-newPp 12-new
Pp 12-new
 
Sql good practices
Sql good practicesSql good practices
Sql good practices
 
Case4 lego embracing change by combining bi with flexible information system 2
Case4  lego embracing change by combining bi with flexible  information system 2Case4  lego embracing change by combining bi with flexible  information system 2
Case4 lego embracing change by combining bi with flexible information system 2
 
Debate Initial Post and Response Rubric Student Name .docx
Debate Initial Post and Response Rubric Student Name     .docxDebate Initial Post and Response Rubric Student Name     .docx
Debate Initial Post and Response Rubric Student Name .docx
 
C4 delivering database as a service within your organization
C4   delivering database as a service within your organizationC4   delivering database as a service within your organization
C4 delivering database as a service within your organization
 
Case study 9
Case study 9Case study 9
Case study 9
 
Database management system
Database management systemDatabase management system
Database management system
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 
Complete dbms notes
Complete dbms notesComplete dbms notes
Complete dbms notes
 

More from Roshini Balan

More from Roshini Balan (7)

Pp 08-new
Pp 08-newPp 08-new
Pp 08-new
 
Pp 06-new
Pp 06-newPp 06-new
Pp 06-new
 
Pp 05-new
Pp 05-newPp 05-new
Pp 05-new
 
Pp 04-new revised by hall
Pp 04-new revised by hallPp 04-new revised by hall
Pp 04-new revised by hall
 
Pp 03-new
Pp 03-newPp 03-new
Pp 03-new
 
Pp 02-new
Pp 02-newPp 02-new
Pp 02-new
 
Pp 01-AIS CHP 1
Pp 01-AIS CHP 1Pp 01-AIS CHP 1
Pp 01-AIS CHP 1
 

Recently uploaded

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 

Recently uploaded (20)

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Pp 09-new

  • 1. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Accounting Information Systems, 8e James A. Hall Chapter 9 Database Management Systems
  • 2. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Objectives for Chapter 9  Understand the operational problems inherent in the flat-file approach to data management that gave rise to the database concept.  Understand the relationships among the defining elements of the database environment.  Understand the anomalies caused by unnormalized databases and the need for data normalization.  Be familiar with the stages in database design, including entity identification, data modeling, constructing the physical database, and preparing user views.  Be familiar with the operational features of distributed databases and recognize the issues that need to be considered in deciding on a particular database configuration. 2
  • 3. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Flat-File Versus Database Environments  Computer processing involves two components: data and instructions (programs).  Conceptually, two methods for designing the interface between program instructions and data:  File-oriented processing • A specific data file is created for each application.  Data-oriented processing • Create a single data repository to support numerous applications.  Disadvantages of file-oriented processing include  redundant data and programs  varying formats for storing the redundant data 3
  • 4. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Flat-File Data Management Program 1 Program 2 Program 3 A,B,C X,B,Y L,B,M User 2 Transactions User 1 Transactions User 3 Transactions Data 4 Figure 9-1
  • 5. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Data Redundancy and Flat-File Problems  Data Storage –  creates excessive storage costs of paper documents and/or magnetic form.  Data Updating –  any changes or additions must be performed multiple times.  Currency of Information –  has the potential problem of failing to update all affected files.  Task-Data Dependency –  user unable to obtain additional information as his or her needs change 5
  • 6. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Program 1 Program 2 Program 3 User 2 Transactions User 1 Transactions User 3 Transactions Database D B M S A, B, C, X, Y, L, M The Database Concept 6 Figure 9-2(b)
  • 7. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Advantages of the Database Approach Data sharing/centralized database resolves flat-file problems:  No data redundancy:  Data is stored only once, eliminating data redundancy and reducing storage costs.  Single update:  Because data is in only one place, it requires only a single update, reducing the time and cost of keeping the database current.  Current values:  A change to the database made by any user yields current data values for all other users.  Task-data independence:  As users’ information needs expand, the new needs can be more easily satisfied than under the flat-file approach. 7
  • 8. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Disadvantages of the Database Approach  Can be costly to implement  additional hardware, software, storage, and network resources are required.  Can only run in certain operating environments  may make it unsuitable for some system configurations.  Because it is so different from the file-oriented approach, the database approach requires training users  may be inertia or resistance. 8
  • 9. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. 9 Elements of the Database Environment Figure 9-3
  • 10. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Internal Controls and DBMS  The database management system stands between the user and the database per se.  Thus, commercial DBMSs (e.g., Access or Oracle) actually consist of a database plus…  software to manage the database, especially controlling access and other internal controls  software to generate reports, create data-entry forms, etc.  The DBMS has special software to control which data elements each user is authorized to access. 10
  • 11. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. DBMS Features  Program Development - user created applications  Backup and Recovery - copies database  Database Usage Reporting - captures statistics on database usage (who, when, etc.).  Database Access - authorizes access to sections of the database.  Also…  User Programs - makes the presence of the DBMS transparent to the user.  Direct Query - allows authorized users to access data without programming. 11
  • 12. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Data Definition Language (DDL)  DDL is a programming language used to define the database per se.  It identifies the names and the relationship of all data elements, records, and files that constitute the database.  DDL defines the database on three viewing levels  Internal view – physical arrangement of records (1 view)  Conceptual view (schema) – representation of database (1 view)  User view (subschema) – the portion of the database each user views (many views) 12
  • 13. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Overview of DBMS Operation 13 Figure 9-4
  • 14. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Data Manipulation Language (DML)  DML is the proprietary programming language that a particular DBMS uses to retrieve, process, and store data to / from the database.  Entire user programs may be written in the DML, or selected DML commands can be inserted into universal programs, such as COBOL and FORTRAN.  Can be used to ‘patch’ third party applications to the DBMS 14
  • 15. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Query Language  permits end users and professional programmers to access data in the database without conventional programs.  Possible internal control issue since users may be making an ‘end run’ around the controls built into the conventional programs  IBM’s structured query language (SQL) has emerged as the standard query language.  Adopted by ANSI as the standard language for all relational databases 15
  • 16. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Functions of the DBA 16
  • 17. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Database Conceptual Models  Refers to the particular method used to organize records in a database.  a.k.a. “logical data structures”  Objective: develop the database efficiently so that data can be accessed quickly and easily.  There are three main models:  hierarchical (tree structure)  network  relational  Most existing databases are relational. Some legacy systems use hierarchical or network databases. 17
  • 18. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. The Relational Model  The relational model portrays data in the form of two dimensional tables.  Its strength is the ease with which tables may be linked to one another.  a major weakness of hierarchical and network databases  Relational model is based on the relational algebra functions of restrict, project, and join. 18
  • 19. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. 19 The Relational Algebra Functions Restrict, Project, and Join Figure 9-9
  • 20. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Associations and Cardinality  Association  Represented by a line connecting two entities  Described by a verb, such as ships, requests, or receives  Cardinality – the degree of association between two entities  The number of possible occurrences in one table that are associated with a single occurrence in a related table  Used to determine primary keys and foreign keys 20
  • 21. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. 21 Examples of Entity Associations Figure 9-11
  • 22. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Properly Designed Relational Tables  Each row in the table must be unique in at least one attribute, which is the primary key.  Tables are linked by embedding the primary key into the related table as a foreign key.  The attribute values in any column must all be of the same class or data type.  Each column in a given table must be uniquely named.  Tables must conform to the rules of normalization, i.e., free from structural dependencies or anomalies. 22
  • 23. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Three Types of Anomalies  Insertion Anomaly  A new item cannot be added to the table until at least one entity uses a particular attribute item.  Deletion Anomaly  If an attribute item used by only one entity is deleted, all information about that attribute item is lost.  Update Anomaly  A modification on an attribute must be made in each of the rows in which the attribute appears.  Anomalies can be corrected by creating additional relational tables. 23
  • 24. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Advantages of Relational Tables  Removes all three types of anomalies.  Various items of interest (customers, inventory, sales) are stored in separate tables.  Space is used efficiently.  Very flexible – users can form ad hoc relationships. 24
  • 25. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. The Normalization Process  A process which systematically splits unnormalized complex tables into smaller tables that meet two conditions:  all nonkey (secondary) attributes in the table are dependent on the primary key  all nonkey attributes are independent of the other nonkey attributes  When unnormalized tables are split and reduced to third normal form, they must then be linked together by foreign keys. 25
  • 26. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Steps in the Normalization Process 26 Figure 9-34
  • 27. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Accountants and Data Normalization  Update anomalies can generate conflicting and obsolete database values.  Insertion anomalies can result in unrecorded transactions and incomplete audit trails.  Deletion anomalies can cause the loss of accounting records and the destruction of audit trails.  Accountants should understand the data normalization process and be able to determine whether a database is properly normalized. 27
  • 28. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Six Phases in Designing Relational Databases 1. Identify entities • identify the primary entities of the organization • construct a data model of their relationships 2. Construct a data model showing entity associations • determine the associations between entities • model associations into an ER diagram 28
  • 29. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Six Phases in Designing Relational Databases 3. Add primary keys and attributes • assign primary keys to all entities in the model to uniquely identify records • every attribute should appear in one or more user views 4. Normalize and add foreign keys • remove repeating groups, partial and transitive dependencies • assign foreign keys to be able to link tables 29
  • 30. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Six Phases in Designing Relational Databases 5. Construct the physical database • create physical tables • populate tables with data 6. Prepare the user views • normalized tables should support all required views of system users • user views restrict users from having access to unauthorized data 30
  • 31. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Distributed Data Processing (DDP)  Data processing is organized around several information processing units (IPUs) distributed throughout the organization.  Each IPU is placed under the control of the end user.  DDP does not always mean total decentralization.  IPUs in a DDP system are still connected to one another and coordinated.  Typically, DDP’s use a centralized database.  Alternatively, the database can be distributed, similar to the distribution of the data processing capability. 31
  • 32. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Centralized Databases in DDP Environment  The data is retained in a central location.  Remote IPUs send requests for data.  Central site services the needs of the remote IPUs.  The actual processing of the data is performed at the remote IPU. 32
  • 33. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Advantages of DDP  Cost reductions in hardware and data entry tasks  Improved cost control responsibility  Improved user satisfaction since control is closer to the user level  Backup of data can be improved through the use of multiple data storage sites 33
  • 34. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Disadvantages of DDP  Loss of control  Mismanagement of resources  Hardware and software incompatibility  Redundant tasks and data  Consolidating incompatible tasks  Difficulty attracting qualified personnel  Lack of standards 34
  • 35. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Data Currency  Occurs in DDP with a centralized database  During transaction processing, data will temporarily be inconsistent as records are read and updated.  Database lockout procedures are necessary to keep IPUs from reading inconsistent data and from writing over a transaction being written by another IPU. 35
  • 36. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Distributed Databases: Partitioning  Splits the central database into segments that are distributed to their primary users.  Advantages:  users’ control is increased by having data stored at local sites.  transaction processing response time is improved.  volume of transmitted data between IPUs is reduced.  reduces the potential data loss from a disaster. 36
  • 37. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. The Deadlock Phenomenon  Especially a problem with partitioned databases  Occurs when multiple sites lock each other out of data that they are currently using.  One site needs data locked by another site.  Special software is needed to analyze and resolve conflicts.  Transactions may be terminated and restarted. 37
  • 38. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. The Deadlock Condition 38 Figure 9-26
  • 39. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Distributed Databases: Replication  The duplication of the entire database for multiple IPUs  Effective for situations with a high degree of data sharing, but no primary user  Supports read-only queries  Data traffic between sites is reduced considerably. 39
  • 40. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Concurrency Problems and Control Issues  Database concurrency is the presence of complete and accurate data at all IPU sites.  With replicated databases, maintaining current data at all locations is difficult.  Time stamping is used to serialize transactions.  Prevents and resolves conflicts created by updating data at various IPUs. 40
  • 41. Hall, Accounting Information Systems, 8e ©2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,in whole or in part. Distributed Databases and the Accountant  The following database options impact the organization’s ability to maintain database integrity, to preserve audit trails, and to have accurate accounting records.  Centralized or distributed data?  If distributed, replicated or partitioned?  If replicated, total or partial replication?  If partitioned, what is the allocation of the data segments among the sites? 41