Database Design and Development Flashcards
What is a flat file database?
A database consisting of one table.
Name some of the basic issues with a flat file database.
- Unnecessary repitition.
- An increased file size.
What are the three basic ‘anomalies’?
- Insert anomaly
- Delete anomaly
- Update anomaly
What is an ‘Insert Anomaly’?
Where a new piece of information cannot be added without adding an entire new row.
What is a ‘Delete Anomaly’?
Where a singular piece of information cannot be removed without deleting it’s entire row.
What is an ‘Update Anomaly’?
Where multiple, repeating pieces of information must be updated, but not all of them are. This causes inconsistency in the data.
What is a linked database?
Where two or more tables are created an linked to form a database. This cancels out the three key anomalies of a flat file database.
Name the five key fields used in a database.
- Text Field
- Number Field
- Date Field
- Time Field
- Boolean Field
Field Name - - - Sample Data - - - Field Type
Forename - - - Malcolm - - - ( ? )
Start date - - - 24/12/2017 - - - ( ? )
Field duty - - - Yes - - - ( ? )
Hours worked - - - 55 - - - ( ? )
State the four field types used here.
- Text.
- Date.
- Boolean.
- Number.
What is a primary key?
A unique ID that can be used to identify any individual record in the database.
What is a foreign key?
A key that appears in more than one table, linking them together.
What is a database?
An organised collection of information or data.