Skip to main content
O-LevelComputer ScienceDatabases2210/21 · May/June 2015 · Q712 Marks

A database, PROPERTY, was set up to show the prices of properties for sale and the features of each property. Part of the database is shown below. Property Type Brochure No Number of Bedrooms Number of Bathrooms Garden Garage Price in $ Bungalow B17 7 4 Yes Yes 750,000 Apartment A09 2 1 No No 100,000 House H10 4 2 Yes No 450,000 House H13 3 2 Yes No 399,000 Apartment A01 2 2 No Yes 95,000 Apartment A16 1 1 No No 150,000 House H23 3 1 No Yes 250,000 House H46 2 1 Yes Yes 175,000

  1. (a)Give the number of fields that are in each record.[1]
  2. (b)State which field you would choose for the primary key. Give a reason for choosing this field.[2]
  3. (c)State the data type you would choose for each of the following fields. Garage Number of Bedrooms Price in $[3]
  4. (d)The query-by-example grid below selects all houses with more than 1 bathroom and more than 2 bedrooms. Field: Property Type Number of Bedrooms Number of Bathrooms Price in $ Brochure No Table: PROPERTY PROPERTY PROPERTY PROPERTY PROPERTY Sort: Ascending Show: ☐ ☐ ☒ ☒ Criteria: = 'House' >2 >1 or: Show what would be output.[2]
  5. (e)Complete the query-by-example grid below to select and show the brochure number, property type and price of all properties with a garage below $200,000. Field: Table: Sort: Show: Criteria: or: [4]

Mark scheme

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

  1. [1] (a) 7
  2. [1] (b) Brochure No
  3. [1] (b) Uniquely identifies each property
  4. [1] (c) Garage: Boolean
  5. [1] (c) Number of Bedrooms: Number/Integer/Single
  6. [1] (c) Price in $: Number/Single/Real/Currency
  7. [1] (d) 399000
  8. [1] (d) H13
  9. [1] (d) 450000
  10. [1] (d) H10
  11. [1] (e) Field: Property Type, Table: PROPERTY, Show: Yes, Criteria:
  12. [1] (e) Field: Garage, Table: PROPERTY, Show: Yes, Criteria: True OR Yes OR =-1
  13. [1] (e) Field: Price in $, Table: PROPERTY, Show: Yes, Criteria: < 200000
  14. [1] (e) Field: Brochure No, Table: PROPERTY, Show: Yes, Criteria:

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, 12 marks.
Source
O-Level Computer Science, May/June 2015 Paper 2 Variant 1, 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