Databases : Relational vs Flat File

In a flat file database data can only be stored in one file. Here is an example of a flat file database that stores information about students in a school including what form they are in and who their form teacher is :

There are two serious problems that have been caused by trying to store this data in a flat file database :

If a relational database is used instead then data can be stored in multiple files which are linked by common fields. Here is the same data stored in two files in a relational database :

Relational databases have two important advantages over flat file databases :

GCSE ICT Companion 04 - (C) P Meakin 2004