Data Base Flashcards
What is an entity?
An item of interest which information is stored.
What is a relational database?
Is a database which recognises the differences between entities by creating different tables for each entity.
What are attributes?
Are characteristics of the entity.
What is a flat file?
It is a database that consists of a single file. (Based around one entity and it’s attributes)
How are flat files written out?
Entity1(Attribute1, Attribute2, Attribute3…)
What is a primary key?
It is a unique identifier for each record in the table.
What is a foreign key?
It is the attribute which links two tables together. (It will exist in one table as the primary key and act as a foreign key in another)
What is a secondary key?
It allows a data base to be searched quickly.
Entity Relationship modelling
When relating two databases together there are different degrees of relationships they can possess
Entity Relationship Modelling : One to One
Each entity can only be linked to another entity. For example the relationship between a husband and wife. The husband entity can only be associated with one wife entity and vice versa
Entity Relationship Modelling : One to many
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.
Entity Relationship Modelling : many to many
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
Entity Relationship Modelling : one to one demonstration
Demonstrated using a single line to connect two entities.
Entity Relationship Modelling : one to many demonstration
Will have a branch on one side
Entity Relationship Modelling : many to many demonstration
Has branches on both sides
Capturing data - how to input data into the database
Manually entered, Magnetic ink character recognition (MICR), optical mark recognition (OMR), optical character recognition (OCR)
When do you use Optical Mark Recognition (OMR)
Multiple choice questions on a test
When do you use Magnetic Ink Character Recognition (MICR)
Bank scan queues
Selecting and Managing data
Selecting the correct data is an important part of data reprocessing. Only selecting data that fits a certain criteria to reduce the volume of input.
How is collected data managed?
SQL will sort, restructure and select certain sections.
What is exchanging data and an example ?
It is the process of transferring the collected data. One example is EDI (Electronic Data Interchange.)
Web Technology html example
<html>
<head>
</head></html>