YEAR 1 CO1 WEEK 17 DATABASES Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Define a database.

A

A collection of related data stored in a logical and structured way.

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

State and describe the parts of a database.

A

Table/file : collection of related records which contain the same type of information as all the other records.
Record : all of data relating to one item or thing.
Field : stores one item of data in a record.

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

Define a Flatfile Database.

A

Usually stores only one table with no links between them.

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

State the disadvantages of a Flatfile Database.
And the one advantage.

A

May have redundant data (repeated).
Potential duplicated data.
Harder to update due to data duplication.
Records are not unique.
Security poor as once gained access all data is readily available.
Harder to perform more complex queries.
Easy to setup and understand.

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

Define a Relational Database.

A

Has more than one table which are linked together by primary and foreign keys.

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

State the advantages of Relational Database and the one disadvantage.

A

Data only stored once.
Data integrity is maintained.
Easy to modify the format.
Security is better as sections of data can be individually protected using authorisation.
More future proof.
Hard to set up.

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

Define a primary key.

A

Used to uniquely identify a record.

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

Define a foreign key.

A

A primary key in one table which is used as an attribute in another table to link between tables.

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

Define a secondary key.

A

They act as indexes for easier sorting and faster searching.
May not be unique
And for sorting and searching data.

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

Define data integrity.

A

Refers to the correctness of data over the lifetime of the data

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

State and explain the three types of data integrity.

A

Entity Integrity : every table must have a primary key which is unique and not empty.
Referential Integrity : foreign keys must point to a primary key of another table but can be empty.
Domain Integrity : all attributes in databases are related to the overall domain database that the database is working on.

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

Define data consistency.

A

When data is held in more than one field it should be stored in a consistent way.

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

Define data independence.

A

Refers to separation of data from program that uses it.

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