Skip to main content
O-LevelComputer ScienceDatabases2210/22 · Oct/Nov 2021 · Q66 Marks

A pet supplier uses the database table, STOCK, to keep records of its products for pets. The fields are: Field name Description ProductID code to identify the product ProductName name of product ProductDescription information about the product Animal type of animal the product is for, e.g. cat, bird, horse ProductType type of product, e.g. food, toy, medicine InStock whether the product is in stock or not

  1. (a)(i)Identify the field that could have a Boolean data type.[1]
  2. (a)(ii)Identify the field that should be used as the primary key.[1]
  3. (b)Complete the query-by-example grid to output the products intended for a cat that are in stock. Display only the primary key and the name of the products. The output should be sorted by the primary key. Field: Table: Sort: Show: Criteria: or:[4]

Mark scheme

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

  1. [1] InStock
  2. [1] ProductID
  3. One mark for correct fieldnames
  4. One mark for correct table names and show fields
  5. One mark for correct sort
  6. One mark for correct search criteria in all columns
  7. Field: ProductID ProductName Animal InStock
  8. Table: STOCK STOCK STOCK STOCK
  9. Sort: Ascending
  10. Show: ✔ ✔ □ □
  11. Criteria: ="cat" =Yes
  12. or:

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, 6 marks.
Source
O-Level Computer Science, Oct/Nov 2021 Paper 2 Variant 2, question 6.

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