1. Why a DBMS replaces a file-based approach
A Database Management System (DBMS) provides features that address the issues of a file-based approach. In a flat file the same data is stored many times. This is data redundancy.
Duplicated data might be stored differently, so the data becomes inconsistent. A DBMS stores data in different tables that are linked.
A flat file also has program-data dependence: a change to the structure of the data means every program that accesses it has to be re-written. A complex search needs a new program each time.
Examiner insight
Worked example 13 marks
Bobby tells Kim that a file-based approach is usually better than a relational database. Explain why Bobby is incorrect.
- 1
a flat file has more data redundancy, because the same data is stored many times [1]
- 2
there is program-data dependence with flat files, because a change to the structure of the data means the programs that access it have to be re-written [1]
- 3
a flat file has more data inconsistency, because duplicated data might be stored differently [1]