8
5 A database, FILMS, stores information about films and actors.
Part of the database is shown:
ACTOR(ActorID, FirstName, LastName, DateOfBirth)
FILM_FACT(FilmID, FilmTitle, ReleaseDate, Category)
FILM_ACTOR(ActorID, FilmID)
(a) Complete the entity-relationship (E-R) diagram.
ACTOR FILM_FACT
FILM_ACTOR
[2]
(b) A composite primary key consists of two or more attributes that together form the primary key.
Explain why the table FILM_ACTOR has a composite primary key.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
© UCLES 2022 9618/12/M/J/22
9
(c) Complete the SQL script to return the IDs of all the actors in the film with the title Cinderella.
SELECT .......................................................................................
FROM FILM_ACTOR
INNER JOIN ........................................................................................
ON FILM_FACT.FilmID = ..............................................................................
WHERE FILM_FACT.FilmTitle = .............................................................................. ;
[4]
(d) Write an SQL script to count the number of films that were released in January 2022.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [3]
© UCLES 2022 9618/12/M/J/22 [Turn over
10
(e) A Database Management System (DBMS) is used to create and manipulate the database.
Complete the descriptions of the features and tools found in a DBMS using the given terms.
Not all terms will be used.
Boolean data dictionary data redundancy field names
input interface logical schema normalisation
operating system output primary keys query
structure
A DBMS provides data management. This includes the development of a
....................................................... that stores information about the data stored, such as
....................................................... and ....................................................... .
The ....................................................... uses methods, such as an E-R diagram, to show the
structure of the database and its relationships.
The ....................................................... processor allows a user to perform searches to find
specific data. The DBMS also provides a developer ....................................................... that
allows the user to create tables, forms and reports.
[6]
© UCLES 2022 9618/12/M/J/22