The drone club database contains the two record types in Fig. 1. A pilot may make many flights, but every flight is made by one registered pilot. The club w...

Assessment: Computer Science 9210 | Paper 2 Mock 01 | Concepts and principles of computer science Subject: Computer Science - 9210

Question 1 Report

The drone club database contains the two record types in Fig. 1. A pilot may make many flights, but every flight is made by one registered pilot. The club wants to delete a pilot only after all linked flight records have been checked.

PilotPilotNo (PK)Names, LicenceFlightFlightNo (PK)PilotNo, Duration1

(a) State how many Flight records can link to one Pilot record. [1]
(b) Give the name of the rule that prevents a Flight record containing an unknown PilotNo. [1]
(c) State one reason why this rule improves the database. [1]
(d) Give a suitable data type for Duration measured in whole seconds. [1]

Answer Details

The relationship shown is one-to-many: a Flight must refer to one existing Pilot, while a Pilot can have multiple Flight records.

  1. (a) One Pilot can link to many, including zero or more, Flight records. [1]
  2. (b) The rule preventing an unknown PilotNo in Flight is referential integrity. [1]
  3. (c) Referential integrity prevents orphan records and keeps linked data valid. [1]
  4. (d) Duration in whole seconds should use an Integer (number) data type. [1]

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning