Question 3

OCR Computer Science June 2018 Paper 1A level15 marks

On the specification

(a)
1.3 Exchanging data
(b)
1.3 Exchanging data
(c)(i)
1.3 Exchanging data
(c)(ii)
1.3 Exchanging data
(d)(i)
1.3 Exchanging data
(d)(ii)
1.3 Exchanging data
(d)(iii)
1.3 Exchanging data
(e)
1.3 Exchanging data
Question text

3 An airport holds details of flights in a database using the table Flight. An extract of the table is shown below. FlightID FlightNumber DestinationCode DestinationName DepartureDate DepartureTime 1355 OC0089 JFK John F. Kennedy 03/07/18 09:50 1453 CS1573 LHR Heathrow 03/07/18 10:30 1921 OC7750 JFK John F. Kennedy 04/07/18 08:30 1331 AM0045 YHZ Halifax 04/07/18 14:25 1592 HB0326 RTM Rotterdam 04/07/18 19:10 1659 CS0123 LHR Heathrow 04/07/18 07:20 (a) Describe what the SQL statement below does. SELECT FlightNumber FROM Flight WHERE DestinationCode='JFK' [2] th The airport cancels all its flights to Heathrow on 4 July 2018. (b) The SQL statement below shows all the data for flights going to Halifax. Rewrite it so it instead th removes all flights to Heathrow on 4 July 2018. SELECT * FROM Flight WHERE DestinationName='Halifax' [3] (c) Tables often have primary and secondary keys. (i) State why DestinationCode would not be a suitable primary key for the Flight table. [1] (ii) State why DestinationCode would be a suitable secondary key for the Flight table. [1] (d) The airline wishes to ensure the database is normalised. (i) Describe why the database can be considered to be in First Normal Form. [2] (ii) Describe why the database can be considered to be in Second Normal Form. [2] (iii) Describe why the database can not be considered to be in Third Normal form. [2] (e) The airport wishes to allow airlines to be able to access the data it has on flights via the internet. Describe one format or method the airport could use to provide the data to the airlines so they can use it in their own applications. [2]