Skip to content

Course home

Relational databases

Relational databases

Easy
1234567891011121314151617181920212223242526272829303132333435363738
Question 5

A bicycle rental shop, Velocipede Rides, is transitioning its booking records from a single flat-file spreadsheet to a relational database. The draft schema design is shown below:

Bicycle

BicycleIDModelHourlyRate
BIKE01Cruiser X£5.00
BIKE02TrailBlazer£8.50

Customer

CustomerIDNamePhoneNumber
CUST801Alice Vance07700 900077
CUST802Bob Miller07700 900088

Rental

RentalIDCustomerIDBicycleIDRentalDate
RENT901CUST801BIKE0112/05/2024
RENT902CUST801BIKE0214/05/2024
RENT903CUST802BIKE0115/05/2024

Which of the following statements correctly identifies a key advantage of this relational database structure over a single flat-file spreadsheet?

A

By designating PhoneNumberPhoneNumberPhoneNumber as a foreign key in the RentalRentalRental table, any updates to a customer's contact details are automatically propagated from the RentalRentalRental table back to the CustomerCustomerCustomer table.

B

It minimizes data redundancy by storing customer contact details once in the CustomerCustomerCustomer table, allowing multiple rental records to link to a single customer via the CustomerIDCustomerIDCustomerID foreign key.

C

It improves query performance by duplicating the ModelModelModel and HourlyRateHourlyRateHourlyRate fields from the BicycleBicycleBicycle table into the RentalRentalRental table, thereby eliminating the need for relational joins.

D

It guarantees entity integrity by allowing the primary key RentalIDRentalIDRentalID to contain null values during transactions where the customer has not yet chosen a bicycle.

Markscheme

Relational databases Questions

  1. GCSE
  2. /Computer Science
  3. /Relational databases

38 exam-style questions on AQA GCSE Computer Science Relational databases. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank