Skip to main content
O-LevelComputer ScienceDatabases2210/21 · May/June 2020 · Q67 Marks

A garden centre sells garden tools and stores details of these in a database table named TOOLS. Code is the primary key in the TOOLS table. Code | Description | Price ($) | Quantity_Stock | Quantity_Ordered -------|-------------------------|-----------|----------------|----------------- GFLG | Garden Fork | 50.00 | 1 | 50 GSLG | Garden Spade | 50.00 | 11 | 0 GHLG | Garden Hoe | 45.00 | 8 | 0 HFSM | Hand Fork | 9.99 | 42 | 0 HSSM | Hand Spade | 9.99 | 40 | 0 HWSM | Hand Weeder | 9.99 | 11 | 0 HS20 | Hose (20 metres) | 45.00 | 10 | 0 HS35 | Hose (35 metres) | 60.00 | 2 | 0 HS50 | Hose (50 metres) | 75.00 | 20 | 60 YBLG | Yard Brush | 24.99 | 100 | 0 LMHD | Lawn Mower | 99.99 | 5 | 0 LMBT | Lawn Mower (Battery) | 249.99 | 7 | 0 LMPT | Lawn Mower (Petrol) | 349.99 | 10 | 25 TRBT | Edge Trimmer (Battery) | 79.99 | 15 | 0 TRPT | Edge Trimmer (Petrol) | 59.99 | 20 | 0 SHSM | Shears | 40.00 | 40 | 0 HCSM | Hedge Clippers | 40.00 | 45 | 0

  1. (a)State the purpose of the primary key in the TOOLS table.[1]
  2. (b)List the output from the data shown in the table TOOLS that would be given by this query-by-example. ``` Field: Code Description Price ($) Quantity_Stock Quantity_Ordered Table: TOOLS TOOLS TOOLS TOOLS TOOLS Sort: Descending Show: ✔ ✔ ✔ ✔ Criteria: >40 >0 >0 or: ```[3]
  3. (c)Complete the query-by-example grid to output the tools where the quantity in stock is below 25. Only show the Code, Description and Quantity_Stock fields in ascending order of Code. ``` Field: Table: Sort: Show: Criteria: or: ```[3]

Mark scheme

Marking points from the official mark scheme (May/June 2020). The mark or mark type is shown in brackets.

  1. [1] To uniquely identify a product (in TOOLS)
  2. [3] HS50 Hose (50 metres) 60, GFLG Garden Fork 50, LMPT Lawn Mower (Petrol) 25
  3. One mark for correct data
  4. One mark for correct format
  5. One mark for data in correct order
  6. [3] One mark for each completely correct column (max three)
  7. Field: Code Description Quantity_Stock Table: TOOLS TOOLS TOOLS Sort: Ascending Show: ✔ ✔ ✔ Criteria: <25 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, 7 marks.
Source
O-Level Computer Science, May/June 2020 Paper 2 Variant 1, 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