10
5 A company runs activity courses. It is creating a relational database to store details of the courses
it runs.
The database has five tables:
EMPLOYEE(EmployeeID, FirstName, LastName, Role, Language)
BOOKING(BookingID, CustomerID, CourseID)
CUSTOMER(CustomerID, FirstName, LastName)
COURSE(CourseID, Title, Level, Date)
COURSE_EMPLOYEE(CourseID, EmployeeID)
(a) Complete the entity relationship (E-R) diagram for the database.
COURSE BOOKING CUSTOMER
COURSE_EMPLOYEE EMPLOYEE
[4]
(b) Describe what is meant by referential integrity.
Give an example from the CUSTOMER and BOOKING tables in your answer.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
© UCLES 2021 9608/11/M/J/21
11
(c) A Data Definition Language (DDL) is used to create the structure of the database. One item
that can be created is the database.
Identify three other items that can be created in the database using the DDL.
1 ................................................................................................................................................
2 ................................................................................................................................................
3 .................................................................................................................................................
[3]
(d) Part of the EMPLOYEE table is shown.
EmployeeID FirstName LastName Role Language
001 Jasmine Chen Leader French
002 Kenton Archer Leader English
003 Michael Roux Cook French
004 Conrad Slavorski Leader Russian
Write a Data Manipulation Language (DML) statement to return the first name and last name
of all employees, who are leaders, and speak either French or English.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [4]
© UCLES 2021 9608/11/M/J/21 [Turn over