Skip to main content
O-LevelComputer ScienceDatabases2210/22 · Oct/Nov 2025 · Q710 Marks

A database table WATERFOWL stores some details of a range of birds found in the UK that live on or near water. The length and wingspan dimensions are in centimetres and the typical lifespan is in years. Species Family Length Wingspan CoastalHabitat Lifespan Barnacle goose Goose 63.5 130.0 FALSE 14 Bewick's swan Swan 120.2 190.5 TRUE 8 Brent goose Goose 58.0 94.3 TRUE 11 Canada goose Goose 78.5 160.0 FALSE 6 Eider Duck 58.0 94.5 TRUE 8 Goldeneye Duck 44.5 72.1 TRUE 6 Goosander Duck 63.3 90.0 TRUE 7 Long-tailed duck Duck 44.0 76.6 TRUE 5 Mallard Duck 59.7 90.8 FALSE 3 Mute swan Swan 150.0 220.2 FALSE 10 Pink-footed goose Goose 69.6 150.0 TRUE 8 Pintail Duck 60.0 88.6 TRUE 3 Smew Duck 41.5 62.1 FALSE 7 White-fronted goose Goose 71.5 140.0 FALSE 6 Whooper swan Swan 150.0 230.0 TRUE 9

  1. (a)State the purpose of a primary key in a database table.[1]
  2. (b)Complete the table for each of the given data types, to identify one field from the table WATERFOWL that is most likely to use it. Each field must be different. Data type Field Boolean Integer Real Text[2]
  3. (c)Give the output that would be produced by the structured query language (SQL) statement: SELECT Species, Length, Wingspan FROM WATERFOWL = "Swan" WHERE Family ORDER BY Lifespan;[3]
  4. (d)Complete the SQL statement to list only the species, family and lifespan of all waterfowl whose typical lifespan is at least 10 years, sorted in order of species. SELECT[4]

Mark scheme

Marking points from the official mark scheme (Oct/Nov 2025). The mark or mark type is shown in brackets.

  1. [1] It is used to uniquely identify records
  2. [2] Two marks for all four fields correctly identified
  3. [1] One mark for two or three fields correctly identified
  4. Data type Field Boolean CoastalHabitat Integer Lifespan Real Length // Wingspan Text Species // Family
  5. [1] MP1 Correct data – spelt correctly
  6. [1] MP2 Correct layout – three columns, with no additional punctuation
  7. [1] MP3 Correct order (vertical and horizontal)
  8. [3] Correct output: Bewick's swan 120.2 190.5 Whooper swan 150.0 230.0 Mute swan 150.0 220.2
  9. [1] One mark per correct line, max four
  10. [4] SELECT Species, Family, Lifespan FROM WATERFOWL WHERE Lifespan >= 10 ORDER BY Species;

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 →

About this question

Topic
Databases, O-Level Computer Science (syllabus 2210). Structured question, 10 marks.
Source
O-Level Computer Science, Oct/Nov 2025 Paper 2 Variant 2, question 7.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep