Databases Flashcards
Explain the properties of Serial Files:
How data is stored, the order of data and usage
- Data stored in the order it is entered.
- No order for the data is maintained.
- Used for transaction files.
All data stored on one file.
Explain the properties of Sequential Files:
How data is stored, the order of data and usage
-Data is stored in order of a key field.
-Order maintained as new records are added.
- Useful for master files.
(Was kept on magnetic tapes).
All data stored on one file.
What is an Indexed Sequential File?
An index is maintained to allow groups of records to be quickly accessed.
Define a Database:
A database is a structured, persistent collection of data..
What does persistent mean?
The data is retained after the software has finished processing it.
What are the advantages of databases over files?
- More efficient for processing.
- Reduce storage requirements.
- Avoid redundancy (duplicate data).
- Allow different users to only see relevant data.
How are databases managed?
They are managed by a DBMS (Database management system).
What does a DBMS do?
- Provides a manipulation language to access/change data.
- Provide additional security.
- Provide an interface for other programs to access data.
Give an example of a DBMS
Microsoft Access.
What do databases consist of?
Tables (entities or files) that store data in rows (records/tuples) and columns (fields/attributes).
What is an entity?
A ‘thing’ in which data is recorded for. It is the actual table in a database.
What is a record?
A record/tuple is the row in a database.
What is a field?
The column in a database.
What do queries do?
Allow the modification of data.
Give some examples of a query:
Search, add, delete and sort.