Six original Cambridge-style questions on single-table databases and data types, with worked solutions.
State what is meant by a field and by a record in a database table.
A cinema stores data in a table FILMS.
| FilmID | Title | Rating | Minutes | Is3D |
|---|---|---|---|---|
| F101 | Ocean Deep | U | 96 | TRUE |
| F102 | Night Train | 15 | 118 | FALSE |
| F103 | Robo Pals | PG | 102 | TRUE |
State the number of fields and the number of records in the table.
For the FILMS table above, suggest the most suitable data type for each field: Title, Rating, Minutes, Is3D.
A student suggests storing a postcode such as B12 0QJ as an integer. Explain why this is not suitable.
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.
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.
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.