CSC 182 · Computer Applications
Our notes
2 min readData and information
- Data: raw facts (23, "Okafor", "CSC").
- Information: data processed to give meaning ("Okafor scored 23 in CSC 182").
The data hierarchy
| Level | Meaning | Example |
|---|---|---|
| Field | One fact | Surname |
| Record | All fields about one item | One student's details |
| File or table | Records of one kind | All students |
| Database | Related tables | Students, courses, results |
What a database is
An organised collection of related data stored so it can be found, updated and shared easily.
What a DBMS is
A database management system is software that creates, stores, protects and retrieves data in a database. Examples: Microsoft Access, MySQL, Oracle, PostgreSQL, SQL Server, SQLite.
Functions of a DBMS
- Data definition: create tables, fields and their types.
- Data entry and update: add, change, delete records.
- Retrieval: queries that find data quickly.
- Reports: present data for printing.
- Security: passwords and user rights.
- Integrity: rules that stop wrong data (no score above 100).
- Backup and recovery.
- Concurrency: many users at once without clashing.
Manual records against a DBMS
| Manual files (paper) | DBMS |
|---|---|
| Slow to search | Fast queries |
| The same data copied in many files (redundancy) | Stored once, shared |
| Copies disagree (inconsistency) | One version |
| Easily lost, burnt or eaten by termites | Backups |
| Hard to summarise | Reports in seconds |
| Anyone can read a file | Passwords and access levels |
| Takes much space | Compact storage |
Worked example: redundancy
A faculty keeps a student's phone number in the admissions file, the hostel file and the exams file. The student changes number and tells only the hostel. Now two files are wrong. In a database the number is stored once in the Students table and every office reads the same value.
Disadvantages of a DBMS
- Cost of software, hardware and trained staff.
- Complexity.
- A single failure can affect everyone, so backups are vital.
Types of DBMS (data models)
| Type | Structure | Example use |
|---|---|---|
| Hierarchical | Tree: one parent, many children | Early mainframe systems |
| Network | Records with many links | Older large systems |
| Relational | Tables linked by keys | Access, MySQL: most systems today |
| Object-oriented | Data stored as objects | Engineering and multimedia |
| NoSQL (document, key-value) | Flexible records | Large web apps |
Keys in a relational database
- Primary key: a field that is unique for each record (matric number).
- Foreign key: a field that points to a primary key in another table (matric number in the Results table).
Exams usually ask
- List six functions of a DBMS.
- State five advantages of a DBMS over manual processing.
Common mistake
Using a name as the primary key. Two students can share a name; a matric number is unique.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Workplace Software and Skills, 13.1 What Is a Database?
(opens openstax.org in a new tab)
OpenStax, Workplace Software and Skills, 13.1 What Is a Database?, CC BY-NC-SA 4.0 · licence
-
Foundations of Information Systems, 3.1 Data Types, Database Management Systems, and Tools for Managing Data
(opens openstax.org in a new tab)
OpenStax, Foundations of Information Systems, 3.1 Data Types, Database Management Systems, and Tools for Managing Data, CC BY-NC-SA 4.0 · licence
-
Database
(opens en.wikipedia.org in a new tab)
Wikipedia, Database, CC BY-SA 4.0 · licence
-
Relational database
(opens en.wikipedia.org in a new tab)
Wikipedia, Relational database, CC BY-SA 4.0 · licence
-
OpenStax, Workplace Software and Skills (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Workplace Software and Skills (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
DBMS - Definition
9 min · ≈ 41 MB · about ₦23
(opens youtube.com in a new tab)
-
Database Tutorial for Beginners
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
-
What is Database & SQL?
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
-
DBMS Full Course for Beginners | Learn Database Management System from Scratch | What is DBMS
4 h 25 min · ≈ 1.2 GB · about ₦670
(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.