Databases Flashcards
What is a database?
A database is a persistent organised store of data that is used on a computer system.
What is a Flat File database?
A flat file database can be created in a word processor or spreadsheet as it is only composed of one file or table.
What is each row known as in a flat file database?
- In a flat file database, each row of the table is known as a record
What is each column known as in a Flat file database?
- each column is known as a field
What is a Relational Database?
- Relational Database is where data is contained in more than one table. Tables are then joined by linking a primary key in one table to a foreign key in another table.
What is a primary key?
- Primary Key is a unique identifier such as a code number that can be used to identify each record in a database table.
What is a Foreign key?
- Foreign Key is a field in a table which can be linked to a primary key of another table.
What is a composite key?
The composite primary key is used in a table where two columns are used to form a combined key field. It is necessary for both columns to be combined to form a unique reference.
What is an advantage of using the relational database?
The advantage of using a relational database is that data redundancy is reduced as linking the data tables reduces the duplication of data. This makes it simpler to keep information up to date and increases the accuracy and consistency of data.
The most common type of relationship defined in a relational database is one to many