Chapter 17 Relational Databases and Normalisation Flashcards
How can data be entered into a database?
- web based forms
- paper forms
- automated devices
- OCR
- OMR
What is the main advantage of having web based forms?
Can have very strong validation for data being entered
What is the main disadvantage of paper forms?
Prone to mistakes, so people are asked to enter data twice
What are some examples of automated devices?
barcode scanners, smart card readers
What does OCR stand for and what is it?
optical character recognition used for handwritten character recognition
What does OMR stand for and what is it?
Optical mark recognition, captures human entered data from forms
What are the names of files that can be used to store captured data? - data that can be in a database
- serial files
- sequential files
- indexed sequential files
- random/direct access files
What is a serial file?
Stores data in entered order, there is no order enforced
What is a sequential file?
stores data in order of the key field, order is enforced
What is a indexed sequential file?
Stores data in order of the key field with an index to allow groups of records to be accessed quickly
What is a random/direct access file?
Data entered is given a unique record number that can be used to access that data
What does DBMS stand for?
database management system
What are some examples of DBMS?
Microsoft Access
Oracle
What is a DBMS?
A software application with many features used for dealing with databases
What are the features of a DBMS?
- creates interface for user
- allows queries
- reports
- additional security
- enforces integrity of data (referential integrity)
- interact with other software applications
What additional features can a DBMS administrator do?
- provide centralised backup
- assign user access levels
- create logon and passwords for database
- updates to DBMS
Normal form of displaying a table/relation/entity?
entity(attribute one, attribute2 , attribute3)
What does it mean when in the form above something is underlined?
It means it is the primary key
What does it mean when something in this form is overlined?
It means there is more than 1 piece of data in this attribute.
What does it mean when there is an asterisk next to an attribute in this form?
Means that attribute is a foreign key.
What is data integrity in a database?
The correctness and consistency of data along the whole database
What is referential integrity?
A concept of a database where consistency between linked tables is kept. It enforces an action on linked table based on the action on the primary and vice versa.
Techniques used by the concept of referential integrity?
- update , when a record is updated, all records pointed to by the foreign key will also be updated to the same values
- delete , when a record in primary table is deleted, all records pointed to by foreign keys in other tables will also be deleted
What is normalisation?
formal process involved in the design of an efficient relational database?