Databases Flashcards

1
Q

Define entity

A

An entity is a category of object, person, event or thing of interest about which data needs to be recorded

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

What is a flat file?

A

consists of information about a single entity

1 table

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

What is a primary key

A

a unique idetifier for each record

primary keys are underlined

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

Entity relationships

A

One-to-one e.g. Husband and Wife
One-to-many e.g. Mother and Child, School and Pupil
Many-to-many e.g. Actor and Film, Recipe and Ingredient

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

What is a foreign key?

A

A foreign key is an attribute that creates a join between two tables (relations)
It is the primary key in the first relation

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

What is a composite primary key?

A

Two or more attributes that are needed to uniquely identify

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

Why have databases?

A

They allow data to be :
retrieved quickly
updated
filtered

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

What is data integrity?

A

The maintenance of a state of consistency in a data store

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

What is data corruption?

A

The opposite of data intergity

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

What is data security?

A

Keeping data safe

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