Learning Objectives

By the end of this chapter, you will be able to:

  • Describe the file system approach as separate sheets per office and name its eight risks in three groups.
  • Explain the database approach as one shared store under a DBMS and group its controls by integrity, security, and concurrency.
  • Compare the two approaches on redundancy, consistency, sharing, and total cost with a Nepal cooperative budget in NPR on a BS 2081 date.
  • Decide when a file remains enough and what signal forces a move to a database for IRD and NRB reporting.

Three sheets, two phones, one failed SMS

Shanti Saving Cooperative in Rupandehi runs three sibling files. Admissions keeps admission.xlsx, Accounts keeps fees.xlsx, and the exam section keeps marks.xlsx. Each holds the member phone. On 2081-08-22 member 9847 Sita changes her number and tells only the exam section. Accounts still holds the old number. That afternoon Accounts sends the interest SMS to the old number. Sita never receives it. The three files also cannot answer the manager who asks for one report that joins fees and marks for 600 trainees. The data exists. The shape prevents the answer.

The branch did not need more data. It needed one place for the data with rules around it.

Framework 1: The file system and what breaks in three groups

The file system approach stores data in separate application files per office. Today that is usually separate spreadsheets per person or per ward. A database in contrast stores related data once in linked tables. A DBMS is the software that guards those tables and serves many users from one copy. Do not memorise eight problems as a flat list. Group them so you see the business impact before the label.

A. Data shape: redundancy, inconsistency, isolation

  • Redundancy is the same fact stored many times. Sita phone lives in three files. One change demands three edits, so staff skip two.
  • Inconsistency follows redundancy. One phone updated and two not means the branch holds two truths for one person. An SMS fails, then trust fails.
  • Isolation is trapped data. Fees in one format cannot join marks in another without retyping. The principal cannot run one query for overdue fees plus failed trainees because the data never shared a key.

B. Program ties and weak rules: dependence and integrity

  • Program data dependence: a program is bound to one file layout. Add a field such as citizenship_no and every program that reads the old layout needs rewriting.
  • Integrity problems: rules like age must be positive or balance cannot fall below minimum live as code inside each app, so they are missed in some apps and enforced in others. No single gate blocks a duplicate member or a transaction without a member.

C. Sharing risks: security, concurrency, backup

  • Poor security: control is at the file level, so copying is easy and tracing edits is hard. Anyone with the sheet can change the past.
  • Concurrent access loss: two tellers edit the same file and one overwrites the other.
  • Fragile backup: each office backs up its own way or not at all. Recovery is guesswork, as IRD and NRB deadlines do not wait for guesses.

Evidence on one table

Office File Holds Sita phone 9847 Value on 2081-08-22
Admissions admission.xlsx Yes 9847-000111, old
Accounts fees.xlsx Yes 9847-000111, old
Exam section marks.xlsx Yes 9857-000222, new

Three copies, two values, zero reliable report. The same number stored three times is redundancy. Two numbers for one person is inconsistency. The inability to join fees and marks is isolation.

flowchart TB
  subgraph FS[File system: three copies]
    A1[Admissions app] --> F1[(admission.xlsx)]
    A2[Accounts app] --> F2[(fees.xlsx)]
    A3[Exam app] --> F3[(marks.xlsx)]
  end
  subgraph DB[Database: one copy]
    B1[Admissions form] --> DBMS[DBMS]
    B2[Accounts form] --> DBMS
    B3[Exam form] --> DBMS
    DBMS --> D[(Member table: one row per person)]
  end

Framework 2: The database as one truth with a gatekeeper

The database approach stores all related data centrally. The DBMS enforces who reads, who writes, and what counts as valid. MySQL, PostgreSQL, Oracle, and SQL Server are common choices. A cooperative needs the tables, not the brand.

What the gatekeeper enforces, in three groups

  • Integrity as single definition: constraints are defined once and checked for every write. A primary key on member_id blocks a duplicate Sita. A foreign key blocks a transaction that points to no member. A check blocks a negative fee.
  • Security as role, not file: the DBMS grants access by user and by field. A teller can post but not delete. An auditor can read but not edit. The log shows who changed what on which BS date.
  • Concurrency and recovery as built ins: the DBMS locks correctly so two tellers do not overwrite each other, and it offers backup and restore as a tested routine rather than a hope.

Isolation disappears because tables share keys. Dependence shrinks because programs read a stable view while storage evolves underneath.

What centralisation costs

A single gate is also a single point of failure and a new skill to pay. The DBMS needs design before entry, hardware plus backup, and a person who owns restore testing. That cost must be priced against the rework sheets force every month.

Framework 3: Side by side on the same branch facts

Aspect File system of three sheets Database under a DBMS
Redundancy High. One phone three times Controlled. One phone one row
Consistency Poor. Two values for 9847 High. One edit reaches all views
Sharing and reporting Hard. Join needs retyping Easy. One SQL joins fees and marks
Integrity rules Per app, often missed Central, enforced each time
Security File copy, weak trace User and field level, logged
Concurrency Overwrite risk Locked by DBMS
Backup and recovery Manual, uneven Built in and tested
Cost and skill Low today Higher upfront, cheaper per report

When a file is still enough

One user, few records, low risk, and no shared editing. A price list of 40 items on one laptop is fine as a sheet. A branch with 5,000 members, shared edits, and a filing duty to IRD is not.

Self-check

Nepal worked example: the cost of two phones for one person on BS 2081-08-23

Shanti has 5,000 active members. The secretary prices both approaches on 2081-08-23.

File system cost today: zero licence. Monthly pain: three staff spend three days each on reconciliation at Rs 1,800 a day. That is 3 times 3 times 1,800 = Rs 16,200 a month. Annual = Rs 194,400. Add one IRD penalty risk: a quarterly VAT report built from three sheets misses Rs 2,200 of output VAT because a Rs 16,923 service bill was in the wrong sheet and omitted. With 13 percent VAT the shortfall is Rs 2,200, plus a late fee of about Rs 2,500, total Rs 4,700 in one quarter. Annualise that as a plausible exposure of about Rs 10,000.

Database cost: design plus migration Rs 55,000, a small server Rs 75,000, UPS Rs 15,000, backup disk Rs 10,000. Build = Rs 155,000 in year one. DBMS is PostgreSQL community edition at zero licence. Annual DBA support Rs 48,000 at Rs 4,000 a month, plus disk and power about Rs 10,000. Annual run = Rs 58,000 from year two.

Proof of fix: after migration the member table holds one row per ID with a unique constraint on member_id and on phone. Sita 9847 has one phone 9857-000222. An attempt to re enter her old number 9847-000111 as a new row fails the unique check. The SMS routine reads that one field. Next day SMS delivery to Sita succeeds because there is only one number to send to.

Payback: file waste Rs 194,400 versus database run Rs 58,000 saves Rs 136,400 a year after build. The Rs 155,000 build is recovered in about 14 months even before counting penalty exposure. For a cooperative that files monthly VAT on 13 percent and answers NRB on member balances, the question is not whether to afford a database. It is whether it can afford three truths.

Summary

  • The file system stores the same fact in many places because each office owns its file. That creates redundancy, then inconsistency, then isolated reports, then weak integrity and exposed sharing.
  • The database stores one fact once under a DBMS that enforces keys, roles, locking, and backup as one routine. Different offices read one row through different permissions.
  • Cost comparison is not licence alone. Price annual reconciliation and penalty exposure against a one time build and a modest run fee. The Shantico-op numbers show the build paying back in just over a year when three sheets drive monthly rework.

Key Takeaways

  • One member, one row, keyed by member ID. That one rule cures most drift.
  • Isolation is not a data shortage. It is a key shortage. Shared keys let fees join marks without retyping.
  • A cheap file can be expensive at filing time. The IRD report reads the same store that the counter writes or it reads a different store that drifts.

Discussion Questions

  1. A ward adds a new program that needs a new field. Why does the file system force edits across offices while the database can add a column once.
  2. Who should hold delete permission on the member table and what approval plus log entry should precede a delete.
  3. A manager argues that cloud sheets solve concurrency. What still fails on integrity and backup if there is no keyed table beneath the sheets.

Exercises

Short answer

  1. Define redundancy and inconsistency with the Sita 9847 case of two phones on 2081-08-22.
  2. What is program data dependence and why does adding a field break file based programs.
  3. What is a DBMS and which of its controls solves which of the three sharing risks.

Long answer

  1. Explain eight limits of the file system in three groups: data shape, program ties and weak rules, and sharing risks. Illustrate each with the Shanti three file case.
  2. Compare the file system and the database approach on redundancy, consistency, sharing, integrity, security, concurrency, backup, and cost, and show the Rs 136,400 annual saving after the Rs 155,000 build using the BS 2081-08-23 figures. State the signal that tells a BBA branch that sheets are no longer enough for IRD and NRB duties.