Question bank › GCSE Computer Science › Relational databases and SQL

Relational databases: tables, keys & redundancy

Answer on paper first, then reveal the mark scheme one mark at a time.

1Grade 1–33 marks

A gym stores data in a relational database with two tables, Members and Bookings.

Members

MemberIDFirstNameSurnameTownJoinYear
101AmiraKhanLeeds2021
102BenClarkeYork2023
103ChloeEvansLeeds2022
104DanielOkaforHull2020
105EllaMorganBradford2024
106FemiAdeyemiLeeds2023

Bookings

BookingIDMemberIDClassNameDay
B01101YogaMon
B02103SpinTue
B03102YogaWed
B04106PilatesMon
B05103YogaThu
B06105SpinFri

(a) Define the term primary key. [1]

(b) State the primary key of the Bookings table. [1]

(c) State the field in the Bookings table that is a foreign key. [1]

2Grade 4–54 marks

A gym used to store all its data in a single table, with the member's name and town repeated in every booking record.

(a) Explain what is meant by data redundancy and why it can lead to data inconsistency. [2]

(b) Explain how using two linked tables (a relational database) reduces this problem. [2]

Still losing marks on this topic?

Book a free introductory session and we'll find exactly which step is costing you.

Book a free intro