Database Management Systems (DBMS)

Computer Science AS · Databases. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Computer Science AS topics

The idea

A DBMS is the software that creates and manages a database. All programs and users reach the data through it and never open the files directly. Each item is stored once, so the redundancy and inconsistency of a file-based approach are reduced.

The structure of the data is held by the DBMS and not inside each program. A program can then stay the same when the structure changes. This is called program-data independence.

The DBMS keeps a data dictionary, which is data about the data. It also protects the database with access rights and backups, and it gives tools to developers and users.

In simpler words

A DBMS is the software that runs a database. Every program and user reaches the data through it. Each item is stored once, so there are fewer copies that disagree. The DBMS keeps a data dictionary, which describes the data, like field names and types. It also controls who can see what, makes backups, and gives tools for building tables, forms and queries.

An everyday comparison

A data dictionary is like the catalogue in a library: it lists each book's title, shelf and category, but it does not hold the books themselves. The DBMS is like the library staff who fetch books and decide who may borrow them. The comparison stops working because a DBMS also enforces rules automatically, such as data types and referential integrity, and its query processor finds the most efficient way to answer each request.

Rules to remember

Common mistake

The data dictionary is often described as holding the data. It only holds the description of the data (metadata), such as field names and data types.

In the exam

When asked how a DBMS solves file-based problems, link each feature to a problem: data stored once reduces redundancy and inconsistency; structure held by the DBMS gives program-data independence. Describe the data dictionary as metadata, and give examples such as field names, data types and keys. For security, name specific measures: user accounts, access rights, regular backups. For tools, state what each does, e.g. the query processor checks a query and runs it efficiently.

Worked example

A school database is used by teachers and by office staff. Teachers must change marks but must not see fee payments. Office staff must see fee payments but only view marks. Which DBMS feature provides this, and how?

  1. The need is to limit what each kind of user can do, so this is a data security feature, not a backup or integrity feature.
  2. The DBMS gives access rights to groups of users. Each person logs in with a user account that belongs to a group.
  3. The teacher group gets read and write access to marks and no access to fees. The office group gets read-only access to marks and read access to fees.

Answer: Access rights set for groups of users, enforced by the DBMS through user accounts.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← Database conceptsData Definition Language (DDL) and Data Manipulation Language (DML) →Take a Computer Science AS test