Skip to content
Cambridge AS & A Level9618

Database Management Systems (DBMS)

Computer Science 9618 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Database Management Systems (DBMS) notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Database Management Systems (DBMS) notes as text: skim, search, and jump between subtopics.

~12 min read

1. Why a DBMS replaces a file-based approach

A Database Management System (DBMS) provides features that address the issues of a file-based approach. In a flat file the same data is stored many times. This is data redundancy.

Duplicated data might be stored differently, so the data becomes inconsistent. A DBMS stores data in different tables that are linked.

A flat file also has program-data dependence: a change to the structure of the data means every program that accesses it has to be re-written. A complex search needs a new program each time.

Examiner insight

“Some candidates need to improve their understanding of what is meant by program-data dependence.” “Some candidates found it more challenging to then expand on their answer.”

Worked example 13 marks

Bobby tells Kim that a file-based approach is usually better than a relational database. Explain why Bobby is incorrect.

  1. 1

    a flat file has more data redundancy, because the same data is stored many times [1]

  2. 2

    there is program-data dependence with flat files, because a change to the structure of the data means the programs that access it have to be re-written [1]

  3. 3

    a flat file has more data inconsistency, because duplicated data might be stored differently [1]

2. Data management and the data dictionary

A DBMS provides data management. This includes the development of a data dictionary, which stores information about the data stored in the database.

A data dictionary is data about the data in the database. It is also called metadata. It is not the data itself.

It holds items such as table names, field names, data types, validation rules, primary keys, foreign keys and relationships.

Examiner insight

“Some candidates needed to understand that it is data about the data in a database and not the data itself.” “A common incorrect answer was to include both field name and attribute.”

Worked example 12 marks

Describe, using an example, what is meant by a data dictionary.

  1. 1

    a data dictionary stores metadata about the database [1]

  2. 2

    a correct example, such as a field name, a table name, a data type or a validation rule [1]

3. Data modelling and the logical schema

A DBMS supports data modelling through the logical schema. The logical schema is the overview of the database structure, and it models the problem or situation that the database is for.

It is a model of the database that is not specific to one DBMS. It uses methods such as an E-R diagram to show the structure of the database and its relationships. It is a conceptual design, used to design the physical structure.

Examiner insight

“Many candidates need to improve their understanding of a logical schema.” “The most popular answer here was an E-R diagram. A better, more comprehensive answer is the logical schema.”

Worked example 12 marks

Describe what is meant by a logical schema.

  1. 1

    the overview of a database structure [1]

  2. 2

    it is independent of any particular DBMS [1]

4. Data integrity

Data integrity means making sure the data is consistent and up to date. It does not make sure the data is accurate or correct.

A DBMS supports data integrity by enforcing referential integrity. This ensures that every foreign key has a corresponding primary key.

Cascading update and delete, and validation rules, also support integrity.

Examiner insight

“Data integrity makes sure that the data is consistent and up to date, but it does not ensure accuracy or correctness.”

Worked example 12 marks

State what is meant by data integrity and give one example of how this is implemented in a database.

  1. 1

    definition: methods of making sure the data is consistent [1]

  2. 2

    example: enforcing referential integrity, so that every foreign key has a corresponding primary key [1]

5. Data security, backup and access rights

A DBMS provides data security. Each method needs a description, not just a name.

A backup procedure automatically takes copies of the database and stores them off site on a regular basis. The data can then be recovered if it is lost.

With access rights, users or groups of users are given different permissions to different tables, such as read only, read / write or full access. With views, different users see different parts of the database.

Other methods are record and table locking, which prevents simultaneous access so that updates are not lost, and encryption.

Examiner insight

“Some answers gave just a list of methods which is not enough for a description.” “There was also considerable confusion between access rights and the provision of views.”

Worked example 14 marks

Authentication is one method a Database Management System (DBMS) can use to improve the security of a database. Describe other methods that a DBMS can use to improve the security of a database.

  1. 1

    use of access rights: some users are given different access permissions to different tables [1]

  2. 2

    such as read only, read / write or full access [1]

  3. 3

    use of views: different users are able to see different parts of the database [1]

  4. 4

    so users only see what they need to see [1]

6. The developer interface

The developer interface is a software tool that allows the user to create items such as tables, forms and reports.

A database designer uses it to create, modify and delete database objects, and to set up relationships.

It is also used to create a form for data input, add tools such as drop-down boxes and buttons to the form, design a report to show the output in an organised manner, and add a menu so users can choose different actions.

Worked example 13 marks

The DBMS provides a developer interface. Explain how a database designer can make use of the developer interface.

  1. 1

    to create / modify / delete database objects [1]

  2. 2

    to create a form for data input, adding tools such as drop-down boxes or buttons [1]

  3. 3

    to design a report to show the output in an organised manner [1]

7. The query processor

The query processor is software that allows the user to enter criteria, then finds and returns the appropriate result.

It processes and executes queries written in SQL. It searches for the data that meets the entered criteria. It organises the results to be displayed to the user.

Examiner insight

“A common answer was the query processor allows the user to enter queries. This is not enough at this level of study. There needs to be some expansion of what is meant by a query and how the queries are processed.” “Better descriptions of the query processor included a statement about the execution of queries written in SQL.”

Worked example 12 marks

Describe the purpose of a query processor in a DBMS.

  1. 1

    allows the user to enter criteria [1]

  2. 2

    searches for the data that meets the entered criteria [1]

Recap

  • File-based problems a DBMS fixes: data redundancy, data inconsistency, program-data dependence, hard complex searches, lack of privacy.
  • Data dictionary = data about the data (metadata): table names, field names, data types, validation rules, keys, relationships.
  • Logical schema = model of the database that is not specific to one DBMS. An E-R diagram is one method.
  • Data integrity = the data is consistent and up to date. Referential integrity: every foreign key has a corresponding primary key.
  • Security: backup and recovery, access rights, views, record and table locking, encryption. Describe each one.
  • Developer interface = tool to create tables, forms and reports.
  • Query processor = executes queries written in SQL, searching for data that meets the criteria.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. A school stores each student's address in the library file, the sports file and the medical file. Give the term for this problem.1 mark
    Answer
    1. Data redundancy.

    Trap: Data inconsistency is what can follow from the repetition, not the repetition itself.

  2. The school adds a new field to the medical file. Name the problem this causes for the programs that read that file and explain it.2 marks
    Answer
    1. Program-data dependence.
    2. A change to the data structure means the programs have to be re-written.

    Trap: Naming program-data dependence earns one mark. The second mark needs the reason: the programs that access the data have to be re-written.

  3. A student moves house. The new address is typed into the library file only. State the problem this creates and why.2 marks
    Answer
    1. Data inconsistency.
    2. The same address is now stored differently in different files.

    Trap: The new address is correct. It is the copies that disagree.

  4. Which one belongs in a data dictionary: the value Ahmed stored in the field FirstName, or the data type of the field FirstName? Give a reason.2 marks
    Answer
    1. The data type of the field FirstName.
    2. A data dictionary is data about the data, not the data itself.

    Trap: Choosing a stored value confuses the data with data about the data.

  5. The table STUDENT(StudentID, Name, DateOfBirth) is in a database. The data dictionary stores its field names. Give three other items that the data dictionary stores.3 marks
    Answer
    1. The table name, STUDENT.
    2. The data type of each field.
    3. The primary key, or a validation rule, or a relationship.

    Trap: Attribute names are field names, so naming both earns one mark.

  6. Table STUDENT has a foreign key ClassID that refers to the primary key of table CLASS. Someone tries to add a student with ClassID 99. There is no class 99. Describe what a DBMS that enforces referential integrity does.2 marks
    Answer
    1. It prevents the record from being added.
    2. Every foreign key must have a corresponding primary key.

    Trap: It checks the link exists, not that the value is right.

  7. A clinic stores patient data in a DBMS. Staff already log in with passwords and fingerprint scans. Describe two other methods the DBMS can use to protect the data.4 marks
    Answer
    1. Backup procedures: copies of the database are automatically taken on a regular basis and stored off site.
    2. So the data can be recovered if it is lost.
    3. Encryption: the data is turned into ciphertext.
    4. So it cannot be understood without the decryption key.

    Trap: Passwords and biometrics are both authentication, and a list of method names with no description earns at most 2 marks.

  8. A hotel owner is setting up a booking database. Describe how the owner can use the developer interface to help the receptionists enter bookings.3 marks
    Answer
    1. Create a form for data input.
    2. Add tools to the form, such as drop-down boxes or buttons.
    3. Add a menu so the receptionists can choose different actions.

    Trap: "To build the database" names no object, so it earns no marks.

  9. A sports club keeps its data in separate files. The fees program uses a file of each member's name, telephone number and payments. The newsletter program uses a second file of each member's name, telephone number and email address. (a) A member's new telephone number is typed into the fees file only. Identify the problem this causes and explain how a DBMS would prevent it. [2] (b) The secretary wants the email addresses of all members who have not paid. Explain why this is hard with the file-based approach and how a DBMS makes it easier. [3]5 marks
    Answer
    1. (a)
    2. Data inconsistency: the telephone number is now stored differently in the two files.
    3. A DBMS stores the data once in linked tables, so it only needs to be updated once.
    4. (b)
    5. The data is in two separate files, so a new program has to be written for this search.
    6. A DBMS stores the data in tables that are linked.
    7. The query processor lets the secretary enter the criteria, searches for the data that meets them and organises the results for display.

    Trap: Naming the limitation and stopping: examiners reported that candidates found it hard to expand, and the later marks are for the reason applied to the club's files.

  10. The club moves to a DBMS with the tables MEMBER(MemberID, Name, Telephone, Email) and PAYMENT(PaymentID, MemberID, Amount, PaymentDate). Every user already logs in with a password. (a) The treasurer must be able to add and edit payments but must not change any member's details. Describe how the DBMS can meet this requirement. [2] (b) The newsletter volunteer must see each member's Name and Email but never the telephone numbers or any payment. Describe how the DBMS can meet this requirement. [2] (c) Referential integrity is enforced and there is no validation rule on Amount. The treasurer types an Amount of 520.00 instead of 52.00 for member M014, who exists. Explain why the DBMS accepts it. [2]6 marks
    Answer
    1. (a)
    2. Access rights: the treasurer is given read / write access to the table PAYMENT.
    3. The treasurer is given read only access to the table MEMBER.
    4. (b)
    5. Views: the volunteer is given a view of the database.
    6. The view shows only Name and Email from MEMBER, so the volunteer sees only what they need to see.
    7. (c)
    8. Referential integrity only ensures that every foreign key has a corresponding primary key: M014 exists in MEMBER.
    9. Data integrity makes sure the data is consistent and up to date, but it does not ensure accuracy or correctness, so the wrong Amount is not detected.

    Trap: Access rights control what a user may do to a table and views control what a user sees: examiners reported confusion between the two, and between consistent and correct.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
The feature that describes the relationship between data and its structure is an E-R diagram.It is the logical schema. An E-R diagram is one method the logical schema uses.
A data dictionary is the data stored in the database.A data dictionary is data about the data (metadata).
Data integrity makes sure the data is correct.Data integrity makes sure the data is consistent and up to date.
The query processor processes queries.The query processor executes queries written in SQL and returns the data that meets the criteria.

Frequently asked questions

What is a data dictionary?
A data dictionary is data about the data in the database, also called metadata. It is not the data itself. It holds items such as table names, field names, data types, validation rules, primary keys, foreign keys and relationships.
What is a logical schema?
The logical schema is the overview of the database structure, and it models the problem or situation that the database is for. It is not specific to one DBMS. It uses methods such as an E-R diagram to show the structure and its relationships, and it is a conceptual design used to design the physical structure.
What does data integrity mean in a database?
Data integrity means making sure the data is consistent and up to date. It does not make sure the data is accurate or correct. A DBMS supports it by enforcing referential integrity, so every foreign key has a corresponding primary key, and by using cascading update and delete and validation rules.
What security methods can a DBMS use to protect a database?
Access rights give different users or groups different permissions to tables, such as read only, read / write or full access. Views let different users see different parts of the database. A backup procedure takes copies of the database and stores them off site. Record and table locking prevents simultaneous access so that updates are not lost, and encryption is also used.
What does the developer interface in a DBMS do?
The developer interface is a software tool that allows the user to create tables, forms and reports. A database designer uses it to create, modify and delete database objects and to set up relationships. It can also add drop-down boxes and buttons to a form, and a menu so users can choose different actions.
Does the query processor just process queries?
Saying that the query processor processes queries is far too vague for credit at this level of study. It executes queries written in SQL and returns the data that meets the criteria. It also organises the results to be displayed to the user.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters