Databases Flashcards
1
Q
What are serial files
A
- Data stored in the order in which it was entered
- No order to the data is maintained
- Useful for storing transactional data and initialisaion files
2
Q
What are sequential files?
A
- Store data in order of a ket field
- Order is maintained when new records are added
- Useful for storing master files
3
Q
What are sequential files?
A
- Store data in order of a ket field
- Order is maintained when new records are added
- Useful for storing master files
4
Q
What are databases used for?
A
- Handles large data sets
- Efficient processing of data
- Reducing storage requirements
- Avoiding redundancy
- Allowing different users to see relevant data
5
Q
What is the Database Management System (DBMS)
A
- A manipulation langague to access anmd change the data
- Integraty to ensure efficiency and structure is not compromised
- Additional security
- INterface for other programs to access and use the data
- Progrma data inderpendence
6
Q
What are databases made up of?
A
- Tables that store data in rows and colums
- Queries to manipulate data: search, sort, add, amend and delete
- Can create UI and forms
7
Q
Why is a flat file database bad?
A
- Only one table
- Not easy to query
- Duplicated data + inefficient
- More errors between datasets = loss of integrety
8
Q
What do entity relationship models show
A
- They can show the relationships between databases
- Can be one to one or one to many
9
Q
What are primary Keys
A
- Unique identifier for one record from any other
10
Q
What is seconday keys?
A
- Allows for quick ordering of data accoring to a column
11
Q
What is normalisation?
A
- Splitting up tables in a database
- Arranging the data to move it from 1NF to 2NF to 3NF
12
Q
How do you go from 0NF to 1NF
A
- Eleminate uplicate columns
- Get rid of any groups repeating data
- Identify Primary key
- Seperate out any attributes which are not atomic into sepearate attributes (One peice of data per field)
13
Q
How to get from 1NF to 2NF
A
- Check data is already in 1NF
- Remove any partial dependencies which is one or more of the attributes depend on only part of the primary key (like course number and student name)
- Seperate the partial dependencies into different tables
- Fix any many-to-many relationships found
14
Q
How do you convert from 2NF to 3NF
A
- Check data in 2NF
- Make sure there is no-key dependencies
- Meaning every field must depend on the primary key
- If not its seperated again to remove repeating data
15
Q
What is SQL?
A
- Allows fast efficient querying
- Retrieving information from databases