BOOKLET 2 Flashcards
Flat file database#
A database which only contains one file, which is not linked to any other file. It allows simple operations such as sorting and filtering but is not very versatile
Data redundancy/duplication#
The same value is stored more than once thus taking up unnecessary space storing the same data multiple times. This makes the individual files difficult to maintain/update and may compromise the data consistency and integrity
Data inconsistency#
An attribute/field stored more than once in a database and has different values throughout; they contradict eachother. eg- a customer address is updated in one file but not another, or keyed in incorrectly in one of the files. Data may also be incomplete
Data dependence#
Data is kept seperate from the programs/software which uses/processes it. A databse should be designed in the way that allows its structure to change without preventing client programs that access the data from operating. if any chnages are made to the data in a flat file system then all the programs that are associated with that data also have to be altered which leads to a lack of flexibility
Data integrity#
Refers to the accuracy, validity and correctness of data. The intergrity can be compromised by accidental trasncription errors, processing errors or negligence- on the part of the user. These can be minimised by data verification/validation
Sharing of data is not possible on a flat file
A single channel is set up to gain access of the data on a hard drive, which means that no other user can gain access to the file simultaneously
Advantages of flat files
-Simple and quick to construct
-Minimal training needed
-Expertise not necessary
-Security (data dispersed, so if hacked into, they do not have access to anything)
-Software required is cheaper
Disadvantages of flat files
-Cannot share data
-Inconsistencies
-Poor data integrity
-Data redundancy/ duplication
-More time consuming (same data has to be entered repeatedly)
-Reports and queries quite restrictive
Relational database#
A complex database that stores data in multiple tables that are linked together using common fields referred to as key fields and foreign fields
Advantages of relational databases#
-No data duplication (saves space)
-Data integrity (data will be correct, accurate)
-No inconsistencies (data all stored in one location so will not be different versions of same data and it will all be in the same format)
-Data can be easily shared
-Quicker to enter data, only has to be entered once
-Security (easier to make secure through userID’s, passwords and access rights)
-Complex reports and queries easier to generate
Disadvantages of relational databases#
-More complex training required
-Specialist knowledge needed for maintenance
-Softwarre required is more expensive as it is more complex
Entity/table
A person or thing about which data is held. eg a car dealer would have an entity called customer
Attribute/field
-A data item held on a person or thing in a database
-The entity customer would have an attribute such as model
Key/primary key
Uniquely identifies a record/entity occurence
Composite key
Consists of two or more keys/fields each of which may be a primary key in another table