CO1 Data Bases Flashcards
What is a data base?
Is a collection of related data stored in a logical and structured manner
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 two types of data bases?
Flat file or relational
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?
Repeated data
Harder to update
No unique attributes
Security is poor
What is a relational database?
Has more than one table which are linked together by primary and foreign keys
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 are the advantages of a relational database ?
Data is stored once
Integrity is maintained
Easy to modify
Future proof
What are the disadvantages of a relational database?
Difficult to set up