Cambridge AS Level Computer Science 9618 · 8.1 Database Concepts

Q1 · 9618/11/M/J/21 Q7

Worked solution from the Databases Paper 1 Theory Fundamentals booklet, Part 1 of 2.

Q19618/11/M/J/21original Q7Structured · 11 marks
Question 7 from 9618/11/M/J/21

Worked solution

(a)

Say why a relational database is better than a flat file. Any three of these points:

A file-based approach has more data redundancy, because the same data is stored many times. [1]

A file-based approach has program-data dependence, because a change to the data structure means the programs must be rewritten. [1]

A file-based approach has more data inconsistency (worse integrity), because duplicated data may be updated in one place and not in the others. [1]

Other accepted points: complex searches and queries are hard because a new program is needed each time; flat files give poor privacy because user views are hard to set up.

(b)(i)

Write one example of each relationship:

One-to-one: customer to payment details (or customer to login details) [1]

One-to-many: customer to order [1]

Many-to-many: order to product (or customer to product) [1]

(b)(ii)

Tick many-to-many. It needs a linking table, so it cannot be implemented directly. [1]

(b)(iii)

CREATE DATABASE SHOPORDERS;

Correct statement [1]

(c)

Write any three items stored in a data dictionary:

Table name [1]

Field name (attribute) [1]

Data type [1]

Other accepted items: type of validation, primary key, foreign key, relationships.

KEY IDEAA relational database cuts repeated data and keeps data consistent, and a data dictionary holds the facts about the database's structure.
TOTAL 11 marks

Official mark scheme

Mark scheme for 9618/11/M/J/21 question 7
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.