Structures and links (database) Flashcards
What is a rational database?
A relational database will contain at least two tables. In a relational database the tables are linked using key fields.
Why are rational databases used?
1) Details need only be entered into the appropriate table in the database once
2) Duplication is avoided – data entered in one table can be shared by other tables. This reduces the potential size of the database file.
What is a primary key?
The primary key of a table within a relational database is a field which uniquely identifies each record in the table
What is a one-to-one relationship?
One-to-one relationships occur when there is a direct one to one link between data held on two different tables. e..g. National insurance no. and a pupil
What is a one-to-many relationship?
One-to-many relationships exist where one instance of an entity can exist lots of times in another entity.
Give an example of a many-to-many relationship.
Clubs can accommodate many pupils and pupils can attend many clubs. This is an example of a many-to-many relationship.