One row per thing.

Six original Cambridge-style questions on single-table databases and data types, with worked solutions.

Original questions All questions on this page are original work, written in the Cambridge IGCSE style. They are not from past papers. They test the same concepts and skills the syllabus rewards.
Keep these straight

Columns and rows.

01
Recall
[2 marks]

State what is meant by a field and by a record in a database table.

  • Field: a column in the table that stores one item of data (one attribute) for every record. ✓
  • Record: a row in the table that stores all the data about one item, person or thing. ✓
02
Data
[2 marks]

A cinema stores data in a table FILMS.

FilmIDTitleRatingMinutesIs3D
F101Ocean DeepU96TRUE
F102Night Train15118FALSE
F103Robo PalsPG102TRUE

State the number of fields and the number of records in the table.

  • 5 fields (FilmID, Title, Rating, Minutes, Is3D). ✓
  • 3 records (one for each film; the row of field names is not a record). ✓
03
Apply
[4 marks]

For the FILMS table above, suggest the most suitable data type for each field: Title, Rating, Minutes, Is3D.

  • Title: text/alphanumeric. ✓
  • Rating: text/alphanumeric (values such as PG and 15 can be two characters). ✓
  • Minutes: integer (a whole number of minutes). ✓
  • Is3D: Boolean (TRUE or FALSE). ✓
04
Explain
[2 marks]

A student suggests storing a postcode such as B12 0QJ as an integer. Explain why this is not suitable.

  • A postcode contains letters and a space as well as digits. ✓
  • So it must be stored as text/alphanumeric; it is never used in calculations. ✓
05
Apply
[4 marks]

A shop sells T-shirts in sizes S, M or L, priced from 5.00 to 30.00. Define two fields, Size and Price, for its database table: give a data type and a suitable validation check for each.

  • Size: character (one letter). ✓
  • Size validation: lookup / format check that the value is S, M or L. ✓
  • Price: real. ✓
  • Price validation: range check that it is between 5.00 and 30.00 inclusive. ✓
06
Analysis
[2 marks]

The FILMS table has a field Minutes with a range check of 60 to 240. Explain why the value 96 could still be wrong after passing the check.

  • Validation only checks that the data is reasonable (inside the allowed range). ✓
  • The real film might be 69 minutes and 96 was typed by mistake; validation cannot check accuracy against the real value. ✓

Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.