Lecture Week: 3 Chapter 3: Database Concepts: Tutorial: Bap 71 Ais
Lecture Week: 3 Chapter 3: Database Concepts: Tutorial: Bap 71 Ais
DISCUSSION QUESTIONS:
3.1 What advantages do databases offer for decision-making and reporting processes?
Databases capture, store and manage data as efficiently and effectively as possible.
This has advantages for decision making and reporting because data are the building blocks of
information.
Accurate, relevant and timely information come from quality data capture, storage and management.
This quality is obtained when the data is captured, stored and managed in an efficient and effective
manner.
This means that the data is captured, stored and managed in its lowest form so that it can be built in
a way to meet the accurate, relevant and timely information requirements.
Correct decision making and reporting require accurate, relevant and timely information. Correct
decision making and reporting are vital for organisational performance.
3.2 Define the operation of a relational database. Why has it taken over as the optimal
structure to implement in organisations?
The relational database operates through a sophisticated relational database management system
(RDBMS) that is more flexible and easier to understand, implement and manipulate. Information is
derived from connecting matching data stored in a number of tables. The strength of the relational
approach is that the designer does not need to know which questions may be asked of the data. If
the data are specified and defined carefully, the database can answer virtually any question efficiently
by matching data. It has taken over as the optimal structure to implement in organisation because of
its conceptual simplicity, structural independence and can be done so using flexible client-server
systems. However, it is expensive to purchase hardware, operating systems of computing power for
the database.
1
3.3 How do the characteristics of a file system limit their usefulness for decision making
and reporting?
There are 3 characteristics of file systems that limit the usefulness of file systems for decision making
and reporting.
1. Data management
As file systems capture data on processes, the data captured is tailored toward outputs that show the
transactions undertaken in the process (eg sales order/processing).
Any other information outside this requirement that may be needed for critical decision making and
reporting requires the skill of a data process specialist.
Therefore, even the simplest information-retrieving task could take days, weeks or even months,
undermining timeliness and usefulness. It takes a long time, because new programs need to be
written for the new requirements and the writing, testing and debugging process is time consuming.
3. Data redundancy
Data redundancy occurs when the same data are stored in many different places.
This causes inconsistency because there are different and conflicting versions of the same data in
different places. It creates data anomalies. Therefore, which data is the correct version to use for
decision-making?
• hardware,
• software,
• DBMS
• people,
• procedures and
• data.
Hardware refers to the system’s physical devices which include the computer and computer
peripherals.
The software is the collection of programs used by the computer to function and includes the
operating system, DBMS software, application programs and utilities.
The DBMS software allows the database within the database system to be managed. The DBMS
comprises a group of programs that manipulate the database and provide the interface between the
databases and the user as well as other application programs.
2
There are likely to be several people involved in the database system:
• systems administrators,
• database designers,
• systems analysts and
• programmers.
Procedures are the rules that govern the design and use of the database system for the organisation.
The determination of which data are entered into the database and how they are organised is the role
of the people within the database system.
3
PROBLEMS:
3.1 Consider the following statement: ‘My manager wants to make important strategic and
operational decisions for the company, but complains about the quality of information
from the files. I tell him or her that he or she needs to understand some database
concepts and invest in a database.’ Do you agree? Provide reasons.
Yes. File systems typically store a number of records for each of the administrative functions of the
organisation such as sales order/entry, accounts receivable, inventory and invoicing. However, such
systems have severe limitations because there is duplication of data that is captured in each of the
administrative functions. Updating is repetitive and inefficient. Sharing is limited and data is easily
inconsistent as a result of errors made by staff. As in the case above, there are also demands for
information for decision-making and managers and employees can ask questions such as:
• What products sold well during the past week, month, quarter or year?
• How do the current sales compare with last week, month, quarter or year?
• What proportions of the customers are paying on time?
• Are we taking advantage of all the purchasing discounts?
There are 3 characteristics of file systems that limit the usefulness of file systems for decision making
and reporting.
1. Data management:
As file systems capture data on processes, the data captured is tailored toward outputs that show the
transactions undertaken in the process (e.g. sales order/processing). Any other information outside
this requirement that may be needed for critical decision making and reporting requires the skill of a
data process specialist. Therefore, even the simplest information-retrieving task could take days,
weeks or even months, undermining timeliness and usefulness. It takes a long time, because new
programs need to be written for the new requirements and the writing, testing and debugging process
is time consuming.
Any change to a file’s data characteristics in turn requires modifications to all programs that access
that file. This is called structural dependence as data in a file may be determined by the way other
data have been characterised and stored. This makes file systems extremely unwieldy to program or
manage.
3. Data redundancy:
Data redundancy occurs when the same data are stored in many different places. This causes
inconsistency because there are different and conflicting versions of the same data in different places.
It creates data anomalies. Therefore, which data is the correct version to use for decision-making?
A database such as a relational database can solve these issues and is defined as a collection of
elements that allow the capture, storage, management and use of data within a database
environment. The relational database operates through a sophisticated relational database
management system (RDBMS) that is more flexible and easier to understand, implement and
manipulate. Information is derived from connecting matching data stored in a number of tables. The
strength of the relational approach is that the designer does not need to know which questions may
be asked of the data. If the data are specified and defined carefully, the database can answer virtually
4
any question efficiently by matching data. The result is information that is accurate, relevant and
timely. It has taken over as the optimal structure to implement in an organisation because of its
conceptual simplicity, structural independence and can be done so using flexible client-server
systems. However, it is expensive to purchase hardware, operating systems of computing power for
the database.
• Correct decision making and reporting are vital for organisational performance.
• Correct decision making and reporting require accurate relevant and timely information.
• Accurate, relevant and timely information comes from quality data capture, storage and
management.
• Data are the building blocks of information.
5
3.3 Happy Feet Shoes is a large retailer of women’s footwear. The organisation runs a file
system.
Figure 3.42 is an extract of its sales file.
(a) Discuss the limitations of this file.
(b) Explain how a database would overcome these limitations.
(c) Illustrate your explanation by developing a database design.
• Update anomalies – if the same customer bought more shoes, each row has to be updated
with the same information, which is duplication. This can easily lead to errors. Similarly, if the
customer details have changed, the organisation has to go back and change each of the
previous details for the same customer.
• Insertion anomalies – every sale must have details such as sales person in the column.
• Deletion anomalies – if a sales person were to leave, the details must be adjusted to reflect
the non-availability of the sales person leading to a loss of data.
• Data integrity – the file system allows spelling errors and typographical errors
(b) A database such as a relational database can solve these issues and is defined as a collection of
elements that allow the capture, storage, management and use of data within a database
environment. The relational database operates through a sophisticated relational database
management system (RDBMS) that is more flexible and easier to understand, implement and
manipulate. Information is derived from connecting matching data stored in a number of tables. The
strength of the relational approach is that the designer does not need to know which questions may
be asked of the data. If the data are specified and defined carefully, the database can answer virtually
any question efficiently by matching data. The result is information that is accurate, relevant and
timely. It has taken over as the optimal structure to implement in organisation because of its
conceptual simplicity, structural independence and can be done so using flexible client-server
systems. However, it is expensive to purchase hardware, operating systems of computing power for
the database.
There are 3 characteristics of file systems that limit the usefulness of file systems for decision making
and reporting.
6
1. Data management
As file systems capture data on processes, the data captured is tailored toward outputs that show the
transactions undertaken in the process (e.g. sales order/processing). Any other information outside
this requirement that may be needed for critical decision making and reporting requires the skill of a
data process specialist. Therefore, even the simplest information-retrieving task could take days,
weeks or even months, undermining timeliness and usefulness. It takes a long time, because new
programs need to be written for the new requirements and the writing, testing and debugging process
is time consuming.
3. Data redundancy
Data redundancy occurs when the same data are stored in many different places. This causes
inconsistency because there are different and conflicting versions of the same data in different places.
It creates data anomalies. Therefore, which data is the correct version to use for decision-making?
(c)
shoes
Shoe_model
Shoe_size
Shoe_amount
customer
sales
Customer_name
Customer_ address Customer_name
Customer_phone Salesperson_name
Shoe_model
Shoe_amount salesperson
Date
Salesperson_name
Salesperson_ address
Salesperson_phone