Skip to content

Learn online at your pace

DBMS 1: Database Foundations and SQL

1.1 Data, information and why file systems fail (notes)

Free preview

Tell data from information, see how organisations stored records before databases, and learn the problems that file-based systems cause.

Data and information

Data is raw facts with no context: 0712345678, 4500, 2026-11-02. Information is data that has been processed so it means something: "Wanjiru paid KSh 4,500 school fees on 2 November 2026". A database is an organised collection of related data, stored so that it can be found, updated and shared easily.

Every organisation runs on data. A SACCO keeps member savings and loans, a school keeps learners, fees and marks, a clinic keeps patients and visits, and M-Pesa keeps billions of transactions. How that data is stored decides how fast and how safely the organisation can work.

Before databases: the file-based approach

Before database systems, each department kept its own files. In a school, the bursar had a fees ledger in Excel, the academic office had a marks file, and the boarding master had a notebook of dormitory lists. Each program or person read and wrote its own file in its own format.

This works for a small shop with one notebook. It breaks as soon as several people and departments need the same data.

Problems with file-based systems

Problem What it means School example
Data redundancy The same data is stored many times A learner's name and phone are in the fees, marks and boarding files
Data inconsistency Copies disagree after one is updated The parent changes phone number; only the bursar's file is updated
Hard to get answers Every new question needs a new program or manual work "Which learners owe fees and scored below 40?" means combining two files by hand
Data isolation Data sits in different formats and places Marks in Excel, fees in a notebook, boarding in Word
Integrity problems Rules are not enforced Someone types a mark of 150 out of 100
Security problems Hard to control who sees what Anyone with the Excel file can see every fee balance
Sharing problems Two people editing the same file at once overwrite each other Two clerks update the fees file at the same time

The database approach

In the database approach, all the related data is kept once, in one place, and a Database Management System (DBMS) controls every read and write. The fees office, the academic office and the boarding office all use the same learner record. When a phone number changes, it changes once and everyone sees the new number.

-- One table of learners, shared by every department
SELECT admission_no, full_name, parent_phone
FROM learners
WHERE admission_no = 'KSS/2024/118';

Key words

  • Data: raw facts. Information: processed, meaningful data.
  • Database: an organised collection of related data.
  • Redundancy: the same data stored in several places.
  • Inconsistency: copies of the same data that disagree.
  • DBMS: the software that manages a database.

Try it yourself

  1. List five pieces of data your college or workplace stores about you. Which departments keep a copy?
  2. Describe one real case where two copies of your details disagreed (for example a wrong phone number at a bank).
  3. For a SACCO, write one question that would be hard to answer with separate Excel files.