ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
10 marks · Entity-relationship diagrams and keys
If the full database is created as a flat file, explain why “RouteID” is not a suitable primary key for the table. Describe two problems in creating this as a flat file database. Problem 1 Problem 2 FlightCrazy decided that using a flat file database is not suitable. State a more suitable type of database. State the field type that should be used for “Aircraft Code”. During the development of this database the following input form is created. Search for a flight One way Return (max 6) Find Flights * indicates field cannot be left empty Departure Airport * Edinburgh Destination Airport * Edinburgh Glasgow Aberdeen Dundee Inverness Departure time Wick Date of travel * Number of travellers * State one suitable type of validation for the Departure Airport field. Complete the table below to show suitable data values to test the Number of travellers field. Test data Type of Test data Exceptional Extreme During the testing of the completed database all the flights from Glasgow to all airports in London on 8th June were found. The following output was produced. Depart Destination Journey Time Price 1h10 1h25 1h20 1h15 1h15 1h15 1h10 1h20 1h10 1h15 1h25 39 39 40 47 47 47 57 57 57 57 73 Easyjet Easyjet LGW STN STN STN LHR LTN STN LTN STN Ryanair Easyjet Easyjet British Airways Easyjet Ryanair Easyjet Ryanair LGW British Airways 11 flights match your search criteria From: Glasgow To: London Date: 8th June Airline 21:20 21:45 20:45 06:30 19:55 21:00 07:00 07:05 09:20 10:25 09:25 LTN Describe how the above results have been sorted. FlightCrazy is a new company offering a flight booking service to business customers. They want to set up a database to store flight details. A researcher starts to gather information from airport timetables about available flight times. Route Departure Destination Day Departure Duration Airline Airline Flight Aircraft ID Airport Airport Time (hrs) Ref Name Number Code
Any one from • Route ID data value is not unique • Cannot identify one row in the table using Route ID data value Any two problems from: • data duplication • inconsistency of data • update anomalies Allow descriptions of terminology or consequences of a problem (for example, searching would be difficult). Relational (database) OR Linked (tables) Text Any one from • restricted (choice) • presence check Exceptional(1 mark): • any value less than 1 or • any value greater than 6 or • any real value • any example of text value Extreme(1 mark): • 1 OR • 6 Two fields in correct order with sorting direction • Price ascending • Depart ascending Accept a description of ascending. Award 1 mark for two fields (with the correct direction) written in wrong order: “depart ascending then price ascending”.