Fundamentals of Databases Flashcards

1
Q

Flat file database

A

Allows the user to specify data attributes for only one table at a time, storing those attributes independently. There is no link between the different tables

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

Relational database

A

Like Flat file but allowing the user to specify information about multiple tablet and the relationships between those tables

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

Primary key

A

An attribute that provides a unique identifier for every entity in a database table.

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

Foreign key

A

Attribute in a table which is the primary key in another, related table

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

What is normalising databases

A

Ensuring that entities contained no repeated data

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

Why normalise

A

So they are efficient without any compromise to the integrity of its data. Also easier to maintain and helps reduce the number of mistakes

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

First normal form

A

Not contain any repeating attributes
Referred to as having atomic data (no Single column containes more than one value)

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

Second normal form

A

Conform to 1nf
No partial key dependencies ( when a non key attribute doesnt depend on the whole of the composite key)

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

Third normal form

A

Conform to 2NF
Have no non key dependencies
ALL NON KEY ATTRIBUTES DEPEND ON THE KEY, THE WHOLE KEY AND NOTHING BUT THE KEY

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

SELECT (SQL)

A

Retrieve data
SELECT <attributes> FROM <table> WHERE <condition></condition></attributes>

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

UPDATE (SQL)

A

Used to modify
UPDATE <table> SET <attribute> = value WHERE <attribute> = value</attribute></attribute>

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

DELETE (SQL)

A

Removing entities
DELETE FROM <table> WHERE <condition></condition>

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

INSERT (SQL)

A

Add new record
INSERT INTO <table> () VALUES ()

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

Record lock

A

When a record is accessed, its immediately locked to others until the first user is finished

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

Serialisation

A

Requests from users are placed in a queue, when one user is finished the next command is executed

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

Timestamp ordering

A

Each command is assigned a timestamp, and executed in the order of the timestamp

17
Q

Commitment ordering

A

An algorithm is used to work out an optimum order in which to execute commands for the same field. To prevent issues