A database table, FLIGHT, is used to keep a record of flights from a small airfield. Planes can carry passengers, freight or both. Some flights are marked as private and only carry passengers. Flight number | Plane | Notes | Departure time | Passengers --------------|-----------|--------------------------|----------------|------------ FN101 | Caravan 1 | Private passenger flight | 08:00 | Y CN101 | Caravan 2 | Freight only | 08:30 | N CN102 | Piper 1 | Freight only | 09:00 | N FN104 | Piper 2 | Passengers only | 09:20 | Y FN105 | Piper 1 | Freight and passengers | 10:00 | Y FN106 | Caravan 1 | Passengers only | 10:30 | Y CN108 | Caravan 2 | Freight only | 08:00 | N CN110 | Lear | Private passenger flight | 08:00 | Y
- (a)State the field that could have a Boolean data type. Field[1]
- (b)A query-by-example has been written to display just the flight numbers of all planes leaving after 10:00 that only carry passengers. Field: Flight number | Passengers | Departure time Table: FLIGHT | FLIGHT | FLIGHT Sort: Show: [ ] | [✓] | [ ] Criteria: | = Y | = 10:00 or: Explain why the query-by-example is incorrect, and write a correct query-by-example. Explanation Field: Flight number | Passengers | Departure time Table: Sort: Show: Criteria: or:[7]
Mark scheme
Marking points from the official mark scheme (May/June 2019). The mark or mark type is shown in brackets.
- [1] Passengers
- [7] (Explanation Three from:) Flight number not displayed Passengers displayed when should not be Departure time = not > "Freight and passengers" flight not excluded
- [7] (Revised QBE answers shown are examples only - 1 mark per bullet) correct field and table names (either 3 or 4 columns) must include Notes, Flight number and Departure time
- [7] correct show
- [7] correct time criteria for the candidate's QBE grid
- [7] use of criteria to select planes with passengers only
- [7] (Sample QBE 1) Field: Flight number | Passengers | Departure time Table: FLIGHT | FLIGHT | FLIGHT Sort: Show: [tick for Flight number] | [no tick] | [no tick] Criteria: | =Y | >10:00 or: Criteria: | ="Private passenger flight" | >10:00
- [7] (Sample QBE 2) Field: Flight number | Departure time | Notes Table: FLIGHT | FLIGHT | FLIGHT Sort: Show: [tick for Flight number] Criteria: | >10:00 | ="Passengers only" or: | >10:00 | ="Private passenger flight"
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →