Question 1 Report
(a) A school stores student records in a database. Define the following database terms.
(i) Record
[1]
(ii) Field
[1]
(iii) Primary key
[1]
(b) The student database has the following fields: StudentID, FirstName, LastName, DateOfBirth, YearGroup.
State which field would be the most suitable primary key. Give a reason.
[2]
(c) State appropriate data types for each field in the table.
| Field | Data type |
|---|---|
| StudentID | |
| FirstName | |
| DateOfBirth | |
| YearGroup |
[4]
(a) Database term definitions: [3]
(b) The most suitable primary key is StudentID. [1] This is because it is guaranteed to be unique for every student. Other fields such as FirstName or DateOfBirth could be shared by multiple students (two students could have the same name or birthday), but each student is assigned a distinct StudentID. [1]
(c) Appropriate data types for each field: [4]
| Field | Data type | Reason |
|---|---|---|
| StudentID | Integer (or String if it contains letters) | A numeric identifier for each student. [1] |
| FirstName | String / Text | Names consist of alphabetic characters of varying length. [1] |
| DateOfBirth | Date | A date data type stores day, month, and year and allows date-based sorting and calculations such as calculating age. [1] |
| YearGroup | Integer | Year groups are whole numbers (e.g. 7, 8, 9, 10, 11) with no decimal component. [1] |
Everything you need to excel in your exams