UNIHIVE

Study Hub UNIPORT GES 101

GES 101 · Computer Appreciation and Application

Data organisation: bits, bytes, files and databases

Bit, byte, field, record, file and database, in that order. Know file organisation methods (sequential, random, indexed) and why databases are used.

Our notes

2 min read

Data in a computer is organised in levels, from the smallest to the largest:

The data hierarchy

  1. Bit: a single binary digit (0 or 1). The smallest unit.
  2. Byte: 8 bits; enough for one character (a letter, digit or symbol).
  3. Field: a group of characters that holds one fact. Example: Surname, Matric number.
  4. Record: a group of related fields about one person or thing. Example: one student's surname, first name, matric number, department and level.
  5. File: a collection of related records. Example: all student records of a department.
  6. Database: a collection of related files organised so data can be shared and easily retrieved. Example: the university's student database holding personal, course and result files.

Key fields

  • Primary key: a field that uniquely identifies each record (matric number, staff number). No two records share it.
  • Foreign key: a field in one table that refers to the primary key of another table (a results table holds the student's matric number).

File organisation and access

  • Serial: records stored one after another as they arrive, no order.
  • Sequential: records stored in order of a key field (by matric number). Must be read from the start (like a cassette tape).
  • Random (direct): any record can be reached directly by its address (hard disk, SSD).
  • Indexed sequential: records stored in order, with an index for direct access.

Types of files by use

  • Master file: the main, fairly permanent data (student bio-data).
  • Transaction file: records of recent changes used to update the master file (this semester's course registrations).
  • Backup file: a copy kept in case the original is lost.

Database Management System (DBMS)

Software for creating and managing databases: Microsoft Access, MySQL, Oracle, SQL Server. Data is often kept in tables (rows = records, columns = fields) in a relational database.

Advantages of a database over separate files: less duplication (redundancy), more consistency, easy sharing, better security, faster search.

Exams usually ask: arrange the data hierarchy in order; define field, record, file and database with examples; primary key; file access methods.

Common mistake: confusing a field (one fact like "surname") with a record (all the facts about one student).

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All GES 101 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.