Databases(Not done) 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 attribute that is common in both tables.
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
11
Q

What is referential integrity?

A

This means that no foreign key in one table can reference a nonexistent record in a related table

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

What is 1NF?

A

Remove duplicate data

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

What is 2NF?

A

Remove data sets that occur in multiple rows.

Create foreign keys

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

ACID rules

A

ATOMOCITY: a change is performed
CONSISTENCY:any change must retain the overall
ISOLATION:
DURABILTY:

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