Databases Flashcards
1.3.1
What is an entity?
An item of interest about which information is stored
What is a relational database?
Database which recoginses the differences between entities by creating different tables for each entity
What are attributes?
The characteristics of an entity
These are categories about which data is collected
What is a flat file database?
Database that consists of a single file and based around a single entity and its attributes
How are flat files written out typically?
Entity1(Attribute1,Attribute2,Attribute3…)
What is a primary key?
A unique identifier for each record in the table
How is the primary key shown?
By underlining it
What is a foreign key?
An attribute that links two tables together
Acts as the primary key in one table and the foreign key in another
How is the foreign key shown?
With an asterisk (*)
What is a secondary key used for?
Allowing a database to be searched quickly
What is a one to one relationship?
Each entity can be linked to one other entity
What is a one to many relationship?
One table can be associated with many other tables
What is a many to many relationship?
One entity can be associated with many other entities and the other way round
How can banks capture data when they scan cheques?
Using Magnetic Ink Character Recognition (MICR)
All details excluding the amount written are printed in a special magnetic ink which can be recognised by a computer but amount must be entered manually
What method of capturing data is used in multiple choice question tests?
Optical Mark Recognition(OMR) or Optical Character Recognition(OCR)
What is data preprocessing?
Only selecting data that fits a certain criteria to reduce volume of input
What is exchanging data?
Process of transferring the collected data
What is a common way exchanging data is done?
Electronic Data Interchange(EDI) and it does’nt require human input and enables data transfer from one computer to another
How can collected data be managed?
Using sql to sort, restructure and select certain sections
What is a composite key?
A primary key that consists of more than one attribute
What is referential integrity?
When tables are linked it ensures that a particular component isn’t deleted if it is used in a product in product table
What is normalisation?
Process of coming up with the best possible layout for a relational database
What does normalisation have to try accomplish?
No redundancy(duplicates)
Consistent data throughout linked tables
Records can be added and removed without issues
Complex queries can be carried out
What is first normal form?
A table that has no repeating attributes or groups of attributes