1.4.2 Databases (Chp 8) Flashcards
Databases
what is a record?
A row
What is a field?
A column
What is a database?
An organised collection of data
What is a flat file?
A flat file is a database that consists of one entity. Will usually be based around a single table.
What is a relational database?
A relational database are two tables entities/ tables that are linked together by a common item of interest as the primary and foreign key.
Entity Relationship Diagrams
Diagram that shows the relationship between 2 or more tables
1:1
one to one relationship
1:M
one to many
M:M
many to many
Primary key
unique identifier for each record in the table. Allows each record to be uniquely identified.
Secondary key
allows database to be searched quickly. User is unlikely to remember the unique primary key, but will remember a certain field i.e. surname. This makes it possible for the user to search.
Foreign key
attribute that links 2+ tables together. It exists in one table as the primary key and in another table as the foreign key.
Capturing
- method is dependent on the context
- i.e. manually entered in surveys
- Bank scans checks using Magnetic Ink Character Recognition
- Optical Mark Recognition
Selecting and managing data
- selecting the correct data is an important part of data processing.
- This could involve only selecting data that fits a certain criteria.
- Collected data can be managed using SQL to sort, restructure, and select certain sections.
What is normalization?
a technique used to help reduce data duplication in databases. the process of coming up with the best possible layout for a relational database.