0% found this document useful (0 votes)
25 views2 pages

1.8 Database 9608 s21 QP 11

The document outlines the structure of a relational database for a company running activity courses, detailing five tables: EMPLOYEE, BOOKING, CUSTOMER, COURSE, and COURSE_EMPLOYEE. It includes tasks related to creating an entity relationship diagram, explaining referential integrity with examples, identifying items created using Data Definition Language (DDL), and writing a Data Manipulation Language (DML) statement for querying employee data. The document is part of an examination paper from UCLES.

Uploaded by

Aarshiya Bohara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

1.8 Database 9608 s21 QP 11

The document outlines the structure of a relational database for a company running activity courses, detailing five tables: EMPLOYEE, BOOKING, CUSTOMER, COURSE, and COURSE_EMPLOYEE. It includes tasks related to creating an entity relationship diagram, explaining referential integrity with examples, identifying items created using Data Definition Language (DDL), and writing a Data Manipulation Language (DML) statement for querying employee data. The document is part of an examination paper from UCLES.

Uploaded by

Aarshiya Bohara
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like