Worked example 1
A vet clinic needs a simple database to keep track of pets. (a) Identify the main entity. (b) Suggest four suitable attributes for this entity, and state an appropriate data type for each. (c) Draw a table structure and provide one example record.
Show solution outline
(a) The main entity is 'Pet'. [1 mark]
(b) Suitable attributes could be:
- PetID (e.g., Text or Autonumber) - To uniquely identify the pet.
- PetName (e.g., Text) - The pet's name.
- DateOfBirth (e.g., Date/Time) - The pet's date of birth.
- Species (e.g., Text) - The type of animal, e.g., 'Dog', 'Cat'. [1 mark for each of two suitable attributes with data types]
(c) Example table structure and record:
Table: Pet
| PetID | PetName | DateOfBirth | Species |
|---|---|---|---|
| P001 | Fido | 15/06/2021 | Dog |
[1 mark for table structure with correct headings, 1 mark for a valid example record]