1. Introduction to Databases and Data Models
A database is a structured collection of data, organised for easy access, management, and updating. Think of it as a highly organised electronic filing cabinet. To create a useful database, we first build a data model. A data model is a digital representation of a real-life scenario, breaking it down into individual attributes (data items) that a computer can understand and process. For example, to model a 'student', we would identify attributes like 'student ID', 'name', and 'date of birth'. This process helps us decide what data we need to store and how to structure it.
Key term
Examiner insight
Fun fact
Worked example 14 marks
A local sports club wants to create a digital system to manage its members. Explain why using a database would be more suitable than a simple text document.
- 1
- A database provides structure. It would allow the club to store each piece of member information (e.g., name, age, membership type) in separate fields, making the data organised.
- 2
- It allows for efficient searching and sorting. The club could quickly find all members over 18 or sort members by their last name.
- 3
- It supports data validation to ensure information is accurate. For example, it could ensure a 'membership start date' is a valid date.
- 4
- A database can handle relationships between data, such as linking members to the teams they play for, which is difficult in a simple text file.
Recap
- A database is an organised collection of data.
- A data model is a plan or blueprint for a database based on a real-world situation.
- Data modelling involves identifying the essential data items needed to represent a scenario.
- Databases are powerful tools for storing, organising, and retrieving information efficiently.
Quick check
- What is the main purpose of creating a data model before building a database?2 marks