CSC 480 · Database Management
Our notes
2 min readData and information
Data are raw facts (a mat number, a score of 67). Information is data processed to have meaning (Ada's CGPA is 4.21, second class upper). A database is a shared, integrated collection of logically related data, with a description of that data, designed to meet an organisation's information needs.
The file-based approach and its problems
Before databases, each department kept its own files (the bursary's fee file, the faculty's results file, the hostel's allocation file). Problems:
- Redundancy: the same student's name and address stored in many files.
- Inconsistency: a student changes phone number in one file but not the others.
- Data isolation: combining data scattered across files is hard.
- Program-data dependence: the file layout is written into each program; changing a field means rewriting programs.
- Integrity problems: rules (a score must be 0-100) are buried in many programs.
- Concurrency problems: two clerks updating the same record at once.
- Security: hard to give each user only the data they should see.
The database approach
One integrated store, managed by a Database Management System (DBMS): software that lets users define, create, query, update and control access to the database. Examples: MySQL/MariaDB, PostgreSQL, Oracle, Microsoft SQL Server, SQLite (inside Android apps), and older ones such as INGRES and dBASE.
Data integration
Combining data that was held separately into one logical whole, so each fact is stored once and every application sees the same version. Integration needs agreement on names, formats and meanings (is "level" 100-500 or year 1-5?).
People
| Role | Does |
|---|---|
| Data administrator (DA) | policies, standards, what data the organisation needs |
| Database administrator (DBA) | technical: design, security, backup, performance |
| Database designers | logical and physical design |
| Application programmers | write programs that use the database |
| End users | naive (use forms and apps: a student registering courses online) or sophisticated (write queries) |
Advantages and costs
Advantages: controlled redundancy, consistency, sharing, integrity rules in one place, security, standards, faster application development, backup and recovery, concurrency control.
Costs: DBMS software and hardware, complexity, need for skilled staff, larger impact of failure (everything is in one place), performance overhead for simple tasks.
Exams usually ask: define database and DBMS; problems of file-based systems; advantages and disadvantages of the database approach; roles of DA and DBA; what data integration means.
Common mistake: saying a database removes all redundancy. It controls redundancy; some is kept deliberately (backups, indexes, denormalised reporting tables).
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick NOUN CIT 843: Introduction to Database Management Systems
NOUN course book (PDF, about 2 MB). Nigerian course book: database concepts, DBMS architecture, data models, the relational model, SQL, normalisation and transactions.
(opens nou.edu.ng in a new tab)
-
Database
(opens en.wikipedia.org in a new tab)
Wikipedia, Database, CC BY-SA 4.0 · licence
Watch
-
Introduction to Database Management Systems
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
Lec-2: Introduction to DBMS (Database Management System) With Real life examples | What is DBMS
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Lec 2: File processing system in dbms | Disadvantages of file system | File System vs DBMS
23 min · ≈ 104 MB · about ₦58
(opens youtube.com in a new tab)
-
SQL Tutorial - Full Database Course for Beginners
4 h 21 min · ≈ 1.1 GB · about ₦660
(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.