YEAR 1 CO1 WEEK 17-18 DATABASES AND NORMALISATION Flashcards
What is a data base?
Is a collection of related data stored in a logical and structured manner
State and describe the parts of a database.
Table/file : collection of related records which contain the same type of information as all the other records.
Record : all of data relating to one item or thing.
Field : stores one item of data in a record.
What is a file(table)?
A collection of related records which contain the same type of info as all other records
Eg info about all students in a class
What is a record?
All data relating to one item or thing
Eg info about one student in a class
What is a field?
Stores one item of data in a record
Eg a single characteristic about a student (DOB , surname)
What are the key points about flat file databases?
Only one table,
No links between them
What are the advantages of a flat file data base?
Easy to set up or understand
What are the disadvantages of a flat file data base?
May have redundant data (repeated).
Potential duplicated data.
Harder to update due to data duplication.
Records are not unique.
Security poor as once gained access all data is readily available.
Harder to perform more complex queries.
Easy to setup and understand.
What is a relational database?
Has more than one table which are linked together by primary and foreign keys
State the advantages of Relational Database and the one disadvantage.
Data only stored once.
Data integrity is maintained.
Easy to modify the format.
Security is better as sections of data can be individually protected using authorisation.
More future proof.
Hard to set up.
What is a primary key?
Unique identifier
what is A foreign key?
Is a primary key in one table which is used as an attribute in another table
/ repeating attribute
What is a compound key?
A combination of fields that makes a record unique
What is a secondary key?
Made on a field that you would like to be indexed for faster searching
May not be unique are used for sorting or searching
What is normalisation (databases)?
Data is split over multiple tables which are related / The process of refining structure of a database to minimise redundancy and improve integrity.
If not normalised potentially has repeated data or inconsistent data.