1.3.2 Databases Flashcards
What is a relational database?
A database where separate tables are made for each entity and relationships between entities are represented by foreign keys
What is an attribute?
A characteric of an entity, it is also the column of a database
What is a flat-file database?
A data base where a single table data structure is used to store all the data
What is a primary key?
A primary key is a unique identifier for each record in the table.
What is a record?
A record is a row in a data base, typically about one entity
How do we show which attribute is the primary key?
By underlining it
What is a foreign key?
A foreign key is the attribute which links two tables together.
The foreign key will exist in one table as the primary key and act as the foreign key in another.
How do we show which attribute is the foreign key?
By using an asterick
What is a secondary key?
A key that can be used as an alternative index to access or sort records in the table in a quicker, but less accurate way than the primary key
What is entity-relationship modelling?
A mthod of abstractly describing the data tables and the relationships between them visually.
They can be used to reduce redundacy and construct a relational database
What is a one-to-one entity relationship?
Each entity can only be linked to one other entity, such as the relationship between a husband and wife.
The husband entity can only be associated with one wife entity and vice versa.
What is a one-to-many entity relationship?
One table can be associated with many other tables, such as a mother having multiple children.
Similarly, multiple child entities can be linked to the same mother entity.
What is a many-to-many entity relationship?
One entity can be associated with many other entities and the same applies the other way round.
An example is students and courses - each student can enrol in more than one course and each course can have more than one student
What is normalisation? (databases)
Normalisation tries to accomplish the following things:
● No redundancy (unnecessary duplicates).
● Consistent data throughout linked tables.
● Records can be added and removed without issues.
● Complex queries can be carried out.
What is indexing?
The process of creating an index of primary keys such that the location of any record can be retrieved given its primary key
What is referential integrity?
The idea of keeping a database consistent by ensuring that any changes made to data or relationsips associated with a table are accounted for in all the linked tables
What are 3 benefits of electronic databases?
Easier to retrieve, add, delete, update and modify data
Easier to back up and make copies of data
Can be accessed by, multiple people at the same time
How can tou capture data?
Paper base forms
OCR
OMR
Explain capturing data using paper based forms?
Data input via this method is manual. It involves a human reading the form and typing the infomation into a computer based system.
How can you try avoid errors when using paper based forms to capture data? (5 points)
Every part of the form is clearly labelled
Instructions to complete the form in black pen
Instructions to complete the form in capitial letters
Use of tick boxes
Squares for entering each letter separately
Explain capturing data using OCR?
To help speed up and automate data input, you can use optical character recognition.
This automatically reads text by interpreting the shape of the letters, its works better with printed text than handwriting.
What does OCR stand for?
Optical character recognition
What are 2 examples of OCR being used?
The post offcie uses OCR software to read postcodes and route mail
Road cameras use automatic number plate recognition software to handle congestion charging and identify drivers who are speeding
What does OMR stand for?
Optical mark recognition