GES 101 · Computer Appreciation and Application
Our notes
2 min readData in a computer is organised in levels, from the smallest to the largest:
The data hierarchy
- Bit: a single binary digit (0 or 1). The smallest unit.
- Byte: 8 bits; enough for one character (a letter, digit or symbol).
- Field: a group of characters that holds one fact. Example: Surname, Matric number.
- Record: a group of related fields about one person or thing. Example: one student's surname, first name, matric number, department and level.
- File: a collection of related records. Example: all student records of a department.
- 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
-
Digital data
(opens en.wikipedia.org in a new tab)
Wikipedia, Digital data, CC BY-SA 4.0 · licence
-
File system
(opens en.wikipedia.org in a new tab)
Wikipedia, File system, CC BY-SA 4.0 · licence
Watch
-
Memory & Storage: Crash Course Computer Science #19
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Representing Numbers and Letters with Binary: Crash Course Computer Science #4
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
Files & File Systems: Crash Course Computer Science #20
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
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.