Database Flashcards

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

Define: Database

A

Organised body of related data that you can access in a clearly defined way, normally relational.

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

Define: Entities

A

Object, person, event or thing of interest to an organisation about which data is recorded.

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

Define: Relationship

A

Association between two entities.

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

What are the three types of relationships in a database?

A

1) One-to-one e.g. Husband and Wife.
2) One-to-many e.g.School and Pupil.
3) Many-to-many e.g. Actor and Film.

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

Define: Primary Key

A

A unique identifier for a particular record.

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

Define: Composite primary key

A

Combining attributes to make a unique identifier.

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

Define: Foreign Key

A

An attribute in one table that is a primary key in another table.

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

Define: Normalisation

A

Is a process used to come up with the best possible design for a database. (Tables should be organised so that data is not duplicated in the same table or in different tables. The structure should allow complex queries to be made)

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

Define: 1st Normal Form

A

Contains no repeating groups of attributes. All attributes must be atomic.

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

Define: 2nd Normal Form

A

Is in first normal form and contains no partial dependencies.

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

Define: 3rd Normal Form

A

Is in second normal form and contains no non-key dependencies. All attributes are dependent 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
12
Q

Define: Atomic

A

A single attribute cannot consist of two data items. eg. first name and surname

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

Advantages of Normalisation

A

1) It is easier to maintain and change a normalised database
2) There is no unnecessary duplication of data
3) Data integrity is maintained – if a person changes address, for example, the update needs to be made only once to a single table
4) Having smaller tables with fewer fields means faster searches and savings in storage

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