1. Flat file database
Information is held in a single table where each column is called an attribute and each row is a record.
Copy of Example of a flat file database
- Usually used to store very small amounts of data
<aside>
❌ Why are they bad? Data redundancy (i.e. repetition of data) and data inconsistency (i.e. errors in the values or format of data that should be identical).
</aside>
2. Relational databases
The solution to flat-file databases.
- Made up of lots of smaller tables linked together, thus removing the duplication of data
- Disadvantage: more complex to create and maintain

An example of a relational database
Advantages of relational databases:
- No data redundancy – in a well-designed relational database there should be no duplicated data (other than the key field).
- No data inconsistency – as data is not duplicated, there is no risk of the same data item being stored differently in another record.
- Flexibility – A relational database can be queried with greater flexibility than a flat-file system. Relationships mean that data can be combined in a variety of ways to produce the views that different areas of an organisation require.
Understanding the difference between entities and attributes.
-
Entity – Library books.
Attributes – ISBN number, author, category etc.
-
Entity – Flights.
Attributes – Flight No., aircraft type, departure/arrival date/time, destination etc.