UNIHIVE

Study Hub UNIPORT CSC 480

CSC 480 · Database Management

Basic concepts: data, databases and the DBMS

Data versus information, problems of file-based systems, what a database and a DBMS are, data integration, the people involved, and advantages and costs of the database approach.

Our notes

2 min read

Data 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

RoleDoes
Data administrator (DA)policies, standards, what data the organisation needs
Database administrator (DBA)technical: design, security, backup, performance
Database designerslogical and physical design
Application programmerswrite programs that use the database
End usersnaive (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

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 CSC 480 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.