BOOKLET 2 Flashcards

1
Q

Flat file database#

A

A database which only contains one file, which is not linked to any other file. It allows simple operations such as sorting and filtering but is not very versatile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Data redundancy/duplication#

A

The same value is stored more than once thus taking up unnecessary space storing the same data multiple times. This makes the individual files difficult to maintain/update and may compromise the data consistency and integrity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Data inconsistency#

A

An attribute/field stored more than once in a database and has different values throughout; they contradict eachother. eg- a customer address is updated in one file but not another, or keyed in incorrectly in one of the files. Data may also be incomplete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Data dependence#

A

Data is kept seperate from the programs/software which uses/processes it. A databse should be designed in the way that allows its structure to change without preventing client programs that access the data from operating. if any chnages are made to the data in a flat file system then all the programs that are associated with that data also have to be altered which leads to a lack of flexibility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Data integrity#

A

Refers to the accuracy, validity and correctness of data. The intergrity can be compromised by accidental trasncription errors, processing errors or negligence- on the part of the user. These can be minimised by data verification/validation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Sharing of data is not possible on a flat file

A

A single channel is set up to gain access of the data on a hard drive, which means that no other user can gain access to the file simultaneously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Advantages of flat files

A

-Simple and quick to construct
-Minimal training needed
-Expertise not necessary
-Security (data dispersed, so if hacked into, they do not have access to anything)
-Software required is cheaper

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Disadvantages of flat files

A

-Cannot share data
-Inconsistencies
-Poor data integrity
-Data redundancy/ duplication
-More time consuming (same data has to be entered repeatedly)
-Reports and queries quite restrictive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Relational database#

A

A complex database that stores data in multiple tables that are linked together using common fields referred to as key fields and foreign fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Advantages of relational databases#

A

-No data duplication (saves space)
-Data integrity (data will be correct, accurate)
-No inconsistencies (data all stored in one location so will not be different versions of same data and it will all be in the same format)
-Data can be easily shared
-Quicker to enter data, only has to be entered once
-Security (easier to make secure through userID’s, passwords and access rights)
-Complex reports and queries easier to generate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Disadvantages of relational databases#

A

-More complex training required
-Specialist knowledge needed for maintenance
-Softwarre required is more expensive as it is more complex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Entity/table

A

A person or thing about which data is held. eg a car dealer would have an entity called customer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Attribute/field

A

-A data item held on a person or thing in a database
-The entity customer would have an attribute such as model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Key/primary key

A

Uniquely identifies a record/entity occurence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Composite key

A

Consists of two or more keys/fields each of which may be a primary key in another table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Foreign key

A

-An attribute in one table but is a primary key attribute in another table
-It is used as a link between the two tables

17
Q

Logical data model

A

It is produced during the design stage of the database. It identifies:
-The entities
-The relationships between entities
-The attributes in each entity
-The keys in each entity

18
Q

Physical data model

A

Defines the physical structure of the database. It creates:
-Table structures
-Column/field names
-Data types for each field
-Keys for each table
-Validation rules

19
Q

1NF

A

Contains no repeating groups
-All data values are atomic
-Each field has a unique name
-It has a primary key
(eg one person doing more than one exam)

20
Q

2NF

A

Remove fields that are not dependent on the whole primary key/ remove non-key dependencies
-First table rarely changes
-Check if you need to have both keys to bring up the field, if not, make a new table

21
Q

3NF

A

A table is in 3NF if it contains no non-key dependencies
-Check if anything could be a primary key

22
Q

Why is it not a good idea to have ALL information in one big, unnormalised table?

A

There will be data inconsistency, duplication, redundancy etc

23
Q

Advantages of normalising data#

A

-Resulting database will take up less storage because duplication is minimised
-Information retrieval will be more efficient as data is structured effecively; queries will be processed faster
-Data integrity will be increased

24
Q

Disadvantages of normalisation#

A

-Comples process
-Can generate more tables than an unnormalised database
-More tables= slower
-It is necessary to assign more relationships to interact with larger amounts of tables
-More tables= setting up queries can be more complex