1. Database Fundamentals: Tables, Records & Fields
A database is a structured collection of data. Think of it like a digital filing cabinet. Inside, you have 'tables', which are like individual folders for specific categories of information (e.g., a 'Students' table, a 'Teachers' table). Each table is organised into columns and rows. The columns are called 'fields', representing a single piece of information (e.g., 'FirstName', 'Email'). A complete row, containing all the fields for one single entry (e.g., all the information for one student), is called a 'record'. For your exams, you'll focus on single-table databases.
Key term
Examiner insight
Worked example 13 marks
A vet's clinic wants to create a database to store information about the pets they treat. The information needed is the pet's name, type of animal (e.g., dog, cat), breed, date of birth, and owner's phone number. Identify the table, the fields, and give an example of one record.
- 1
- Identify the main entity: The database is about pets, so a suitable table name would be 'Pets'.
- 2
- Identify the individual pieces of data: These will be the fields. The fields are: PetName, AnimalType, Breed, DateOfBirth, OwnerPhoneNumber.
- 3
- Create an example record: A record is one complete row of data for a single pet. For example: PetName: 'Buddy', AnimalType: 'Dog', Breed: 'Golden Retriever', DateOfBirth: '12/05/2021', OwnerPhoneNumber: '07700900123'.
Recap
- A database is a structured way of storing data.
- A table stores data about a single type of thing, like 'Students' or 'Products'.
- A field is a single piece of data, like 'FirstName', and forms a column in a table.
- A record is a collection of all fields for one item, and forms a row in a table.
Quick check
- In a table of cars, is 'Colour' a field or a record?1 mark
- What is a table in a database used for?1 mark