ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
10 marks · Data dictionary and validation
State the field type used to store each Membership Number. The database contains personal information. State the Act with which Bike Scotland must comply. Describe what Bike Scotland must do to ensure it complies with this Act when collecting this information. The database is redesigned and implemented as a relational database with two linked tables. Cyclist Surname Membership Number Forename Date of Birth Club Code 098-133 Tracy Uttley 30/05/2000 12DW39 213-847 Salim Hanif 09/06/1994 12DW39 624-536 Harry Fence 01/02/1963 12DW39 011-423 Alojzy Czajka 15/03/1979 24FW05 773-362 Maria Amonte 02/11/1999 24FW05 018-253 Derrick Smith 12/12/1970 77SU22 192-033 Donny Carruthers 20/02/1982 77SU22 836-555 Fiona Hewitt 20/02/1972 77SU22 983-543 Samantha Wellbeck 18/09/1975 77SU22 Club Founded Club Code Club Name Number of Members 12DW39 District Wheelers 03/01/1954 45 24FW05 Free Wheel 16/10/2000 67 77SU22 Spokes United 29/04/1985 29 Describe two advantages of using a relational database rather than a flat file database for storing the data. Advantage 1 Advantage 2 Explain why the Club Code field is a primary key and a foreign key in the relational database. When adding a new club to the Club table the following error message is displayed: Club code 12OYB22 is invalid, please re-enter State the validation that has been applied to the field Club Code. The Cyclist table has been sorted on two fields. Describe how the table has been sorted. Bike Scotland uses a flat file database to store details of its members and affiliated cycling clubs. Date of Birth Membership Number Forename Surname Club Code Club Name Founded Number of Members 011-423 Alojzy Czajka 15/03/1979 24FW05 Free Wheel 16/10/2000 67 192-033 Donny Carruthers 20/02/1982 77SU22 Spokes United 29/04/1985 29 213-847 Salim Hanif 09/06/1994 12DW39 District Wheelers 03/01/1954 45 624-536 Harry Fence 01/02/1963 12DW39 District Wheelers 03/01/1954 45 018-253 Derrick Smith 12/12/1970 77SU22 Spokes United 29/04/1985 29 773-362 Maria Amonte 02/11/1999 24FW05 Free Wheel 16/10/2000 67 836-555 Fiona Hewitt 20/02/1972 77SU22 Spokes United 29/04/1985 29 983-543 Samantha Wellbeck 18/09/1975 77SU22 Spokes United 29/04/1985 29 098-133 Tracy Uttley 30/05/2000 12DW39 District Wheelers 03/01/1954 45
Text No other answer Data protection (Act) Must collect only relevant data OR Must only collect data for the purpose they have declared Also accept: Must ensure collected data is accurate Make sure collected data is secure Inform subject data stored electronically Must register with registrar Removes data duplication (1 mark) Eliminates insert/delete/update anomalies or eliminates data inconsistences (1 mark) In one table (club) it is unique/is a unique identifier (1 mark) In the other table (cyclist) it is used to link/form a relationship between the two tables (1 mark) Length check OR Check that it is 6 characters long NOT restricted choice as it is in the club table ClubCode ascending (1 mark) Membership Number ascending (1 mark) Award 1 mark for two fields (with the correct direction) written in the wrong order: “Membership Number ascending then ClubCode ascending”