Question 18
AQA Computer Science June 2022 Paper 2 (8525/2)GCSE13 marks
On the specification
- 18.1
- 3.7 Relational databases and structured query language (SQL)
- 18.2
- 3.7 Relational databases and structured query language (SQL)
- 18.3
- 3.7 Relational databases and structured query language (SQL)
- 18.4
- 3.7 Relational databases and structured query language (SQL)
- 18.5
- 3.7 Relational databases and structured query language (SQL)
- 18.6
- 3.7 Relational databases and structured query language (SQL)
Question text
18 box A relational database has been developed for a youth club to store information about their members and the awards they are given. The database contains two tables: Member and Award Figure 4 shows some data from the tables. Figure 4 Member MemberID FirstName LastName DateJoined 1 Zarah Tariq 2020-01-05 2 Penny Hill 2020-01-05 3 Peter Boyes 2020-02-14 4 Reuben Bailey 2020-10-20 Award AwardID MemberID DatePresented AwardName 11 2020-09-10 Teamwork 21 2020-10-13 Outdoors 33 2020-06-19 Challenge 42 2020-11-11 Leader 18.1 Define the term relational database. [2 marks] 18.2 box State one benefit of using relational databases. [1 mark] 18.3 State the name of the field from the Member table that is the most suitable to use as the primary key. [1 mark] 18.4 State the name of the field from the Award table that is a foreign key. [1 mark] Figure 4 has been included again below. Figure 4 Member MemberID FirstName LastName DateJoined 1 Zarah Tariq 2020-01-05 2 Penny Hill 2020-01-05 3 Peter Boyes 2020-02-14 4 Reuben Bailey 2020-10-20 Award AwardID MemberID DatePresented AwardName 11 2020-09-10 Teamwork 21 2020-10-13 Outdoors 33 2020-06-19 Challenge 42 2020-11-11 Leader 18.5 The youth club needs to produce a report listing the members who have been given box the Leader award. The report must include both names of each member and the date the award was presented. Write an SQL query that could be used to find this information. The results must be in order of the date the awards were presented, starting with the earliest. [6 marks] 18.6 A new member joins the youth club. The following SQL is run to add their details to the database: INSERT INTO (5, 'Alina', 'Ahmed', '2020-11-30') Some of the SQL has been replaced by labels. State the SQL that should have been written in place of the labels and . [2 marks]