exchanging data (databases) Flashcards

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

What are relational databases?

A

An entity is an item of Interest of which info is stored. Relational databases recognise differences between entities by creating tables for each entity.

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

What is a flat file database?

A

A database which consists of a single file. Usually based on a single key and its attributes.

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

What is a primary key?

A

Unique identifier for each record in a table. Like an ID.

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

What is a foreign key?

A

Attribute that links 2 tables together. Exists as primary key in one table and foreign key in another.

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

What is a secondary key?

A

Allows for a database to be searched quickly. Like a surname.

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

What are the 3 entity relationship models?

A

One to one
One to many
Many to many

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

Explain first normal form?

A

There must be no attribute containing more than a single value.

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

Explain second normal form?

A

A database with no partial dependencies and is in first normal form. Meaning no attributes can depend on part of a composite key.

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

Explain third normal form?

A

Must be in second normal form and contain no non key dependencies. This means an attribute depends on the value of the primary key.

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

Explain referential integrity?

A

The process of ensuring consistency.

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

Explain ACID

A

Atomicity - A transaction must be processed fully or not at all
Consistency - A transaction must maintain referential integrity rules between linked tables.
Isolation - Transactions at the same time must lead to the same result as if they were done at the same time.
Durability - Once a transition is executed it will remain so.

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

Explain record locking?

A

This prevents simultaneous access to records within a database. Prevents inconsistencies or loss of updates.

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

Explain redundancy?

A

Companies have one or more copies of the same data in physically different locations. If one is damaged it can be recovered.

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