Skip to main content
O-LevelComputer ScienceDatabases2210/21 · May/June 2019 · Q59 Marks

The table, BEVERAGES, shows the number of calories in 100 ml of a range of popular beverages. It also shows the availability of these drinks in a can, a small bottle and a large bottle. BevNo BevName Calories Can Small Bottle Large Bottle Bev01 Cola 40 Yes Yes Yes Bev02 Lime 45 Yes No Yes Bev03 Energy Drink 1 52 Yes Yes No Bev04 Energy Drink 2 43 Yes No No Bev05 Mango 47 Yes No Yes Bev06 Lemon Iced Tea 38 Yes No Yes Bev07 Lemonade 58 Yes Yes Yes Bev08 Orange Juice 46 Yes Yes No Bev12 Apple Juice 50 Yes Yes No Bev15 Chocolate Milk 83 Yes Yes No

  1. (a)Give a reason for choosing BevNo as the primary key for this table.[1]
  2. (b)State the number of records shown in the table BEVERAGES.[1]
  3. (c)List the output that would be given by this query-by-example. Field: BevNo BevName Can Small Bottle Large Bottle Table: BEVERAGES BEVERAGES BEVERAGES BEVERAGES BEVERAGES Sort: Show: Criteria: or: Descending ✔ ✔ = "Yes" = "Yes" = "Yes" [3]
  4. (d)Complete the query-by-example grid to output a list showing just the names and primary keys of all the beverages with a calorie count greater than 45. The list should be in alphabetical order of names. Field: Table: Sort: Show: Criteria: or: [4]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

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

  1. [1] Each data value is unique
  2. [1] 10 records
  3. [3] Bev07 Lemonade Bev01 Cola 1 mark for each correct content 1 mark for each correct format 1 mark for correct order
  4. [4] 1 mark for correct Field row 1 mark for Table and Sort rows 1 mark for correct Show row 1 mark for correct Criteria rows Field: BevNo BevName Calories Table: BEVERAGES BEVERAGES BEVERAGES Sort: Ascending Show: ✔ ✔ Criteria: >45 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, 9 marks.
Source
O-Level Computer Science, May/June 2019 Paper 2 Variant 1, question 5.

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