Relational databases

Easy
123456789101112131415161718192021222324252627282930313233343536373839
Question 6
Easy

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?

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.

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.

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.

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.

Relational databases Questions

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