1. File-Based Systems vs. The Database Approach
Before databases, data was stored in separate files, often specific to one application or department. This is a 'file-based approach'. It caused major problems. For example, a student's address might be stored in a file for the admissions office and another for the finance office. If the address changes, it might only be updated in one file, leading to conflicting information. A database approach solves this by storing all data centrally and controlling access through a single software system, the Database Management System (DBMS). This eliminates redundant data and ensures everyone uses the same, up-to-date information.
Key term
Examiner insight
Common pitfall
Worked example 14 marks
A college uses a file-based approach. The 'Registry' department keeps a file of student names and addresses. The 'Library' department also keeps its own file of student names and addresses. A student, Maria, moves house and informs the Registry. The Library is not informed. Describe two problems that arise from this situation.
- 1
- Data Inconsistency: The college now holds two different addresses for Maria. The Registry's file is correct, but the Library's file is out of date. This is a data integrity failure, as the data is no longer reliable.
- 2
- Practical Issues: The Library might send important notices or fines to Maria's old address, which she will not receive. This demonstrates a real-world consequence of the data inconsistency.
- 3
- Wasted Storage: Storing Maria's name and address in two separate files is an inefficient use of storage. In a large college, this duplicated data can add up significantly.
Recap
- A file-based approach stores data in separate, often application-specific, files.
- This leads to data redundancy, where the same data is stored in multiple places.
- Data redundancy can cause data inconsistency, where different copies of the data have different values.
- File-based systems suffer from data dependency, where programs are tied to the specific structure of a file.
- A database approach centralises data to improve integrity, reduce redundancy, and allow data sharing.
Quick check
- What is the term for when different versions of the same data are stored in different places?1 mark
- State one problem, other than redundancy, with a file-based approach.1 mark