AS Level · Topic 8.2
A-Level Computer Science 9618 / Topic 8 / AS

Software that guards the data.

Nobody reads or writes the tables of a large database directly. Every request goes through a database management system, which knows the structure, checks the rules, decides who may see what, and keeps backups so that nothing is lost.

The key idea

A database management system (DBMS) is the software that sits between users and the data. It provides data management, including a data dictionary (data about the data: tables, fields, data types, keys, validation rules and relationships), data modelling tools, a logical schema (the overall structure of the database, independent of how it is stored), data integrity (validation and referential integrity) and data security (backup procedures and access rights for individuals and groups). Developers build the database through the developer interface, and every query is checked and run by the query processor.

developersend usersapplication programs DBMS developer interfacequery processor data dictionaryintegrity checkssecurity, backup the database (tables)
Fig. 1: every request to the database passes through the DBMS
Section 01

What a DBMS provides.

Each feature of a DBMS answers one of the problems of the file-based approach. Learn them as pairs: the feature, and the problem it solves.

DBMS featureWhat it isFile-based problem addressed
Data dictionaryA store of metadata: table and field names, data types, field sizes, primary and foreign keys, validation rules, relationships, users and access rightsData dependency: programs ask the DBMS, not the file layout
Data modellingTools to design and view the structure, such as E-R diagrams and table relationshipsNo overall view of the data held in separate files
Logical schemaThe overall logical structure: tables, attributes, keys and relationships, independent of the physical storagePrograms tied to how and where files are stored
Data integrityValidation rules, unique primary keys and referential integrity enforced on every changeInconsistent or invalid data in different files
Data securityUsernames and passwords, access rights for individuals and groups, and backup proceduresAll-or-nothing access to whole files; data lost if a file is damaged
Worked example A data dictionary entry
Give the data dictionary entries the DBMS might hold for the field MemberID in the library database.
  1. Table: MEMBER. Field name: MemberID.
  2. Data type: VARCHAR(4); format: the letter M followed by two digits.
  3. Key: primary key of MEMBER; also used as a foreign key in LOAN, so referential integrity applies.
  4. Validation: presence check, format check; must be unique.
Answer: Name, table, data type and size, key status, relationships and validation rules
Examiner trap

The data dictionary holds data about the data (metadata), not the data itself. "It stores all the records" is wrong.

Section 02

Integrity and security.

Integrity keeps the data correct; security keeps it safe from people who should not see or change it, and from loss. Mark schemes want specific procedures, not "the DBMS keeps data secure".

Worked example Setting access rights
In the school library database, suggest suitable access rights for (a) students, (b) the librarian, (c) the database administrator.
  1. (a) Students: read-only access to BOOK, to search the catalogue; no access to other members' records.
  2. (b) Librarian: read and write access to MEMBER, BOOK and LOAN, to record loans and returns; no right to change the table structure.
  3. (c) Database administrator: full rights, including changing the structure and setting other users' rights.
Answer: Each group gets only the access it needs
Your turn
Explain why a backup alone is not enough: what else must a backup procedure include?
Stage 1 · Learn

Check what the sim just showed you

Four quick checks. Each correct answer earns XP and records this skill on your profile.

Quick check+10 XP

What is held in a data dictionary?

Quick check+10 XP

Which feature gives a student read-only access to the BOOK table?

Quick check+10 XP

What does the query processor do?

Quick check+10 XP

What is the logical schema?

Section 03

The developer interface and the query processor.

Two software tools inside the DBMS are named in the syllabus. You need to know what each one is for and how it is used in practice.

Worked example Following a query
A librarian runs a query to list all loans not yet returned. Describe what the query processor does.
  1. It receives the SQL query and checks that it is valid.
  2. It checks that the librarian has read access to the LOAN table.
  3. It finds the table and fields in the data dictionary and plans an efficient search.
  4. It runs the query and returns the matching records to the librarian.
Answer: Check, plan, execute, return
Examiner trap

Do not confuse the two tools. The developer interface is used to build the database and its forms, queries and reports; the query processor runs queries.

Stage 2 · Exam

Exam-style questions

Unlocks once the four checks above are done. Worth more XP, written to AS Paper 1 and Paper 2 standard.

Finish the four checks above to unlock the exam questions
Exam style+20 XP

How does a DBMS reduce data dependency?

Exam style+20 XP

Which is part of a good backup procedure?

Exam style+20 XP

A developer builds a data entry form in a DBMS without writing any code. Which tool is used?

Exam style+20 XP

Which is an example of the DBMS maintaining data integrity?

Skill unlocked

Database management systems, mastered.

This skill is now recorded on your profile. Keep the chain going.

-Rank -Level -Score -Topics
Go deeper · practice
Six original Cambridge-style questions
The DBMS features that fix file-based problems: the data dictionary, data modelling, logical schema, integrity, security, backups and access rights, plus the developer interface and query processor.