Unit 11 - Databases Flashcards

1
Q

What is an entity?

A

An entity is a category of a thing of interest, object, person… where data can be recorded.

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

What is an entity attribute?

A

An attribute to an entity, is a property/description of the entity; the entity ‘Customer’ would have attributes such as CustomerID, title, first name, last name…

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

What is a primary key?

A

A primary key is an identifier for an entity, uniquely identifying a particular record.

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

Define a composite key.

A

A composite key is where two or more attributes are required when defining a record.

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

Give an example of a composite key.

A

In a customer order, multiple goods may be purchased and the information on the specific goods purchased is called the ‘order line’.
Therefore to define an order line, there are two primary keys for identification:
Order number and Order line.

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

Give the three entity relationships.

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

What is a foreign key?

A

A foreign key is an attribute which joins 2 tables together, creating relations between the tables.

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

What is a relational database?

A

A relational database is a database where data is organised into tables, known as relations.

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

What does each row in a relational database hold?

A

A row in a relational database holds a record.

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

What does each column in a relational database represent?

A

A column in a relational database represents an attribute of an entity.

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

What is normalisation?

A

Normalisation is the process of designing a relational database, through its 3 forms.

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

Give the three forms of normalisation.

A

Normalisation consists of three stages:

  • 1NF (1st normal form)
  • 2NF (2nd normal form)
  • 3NF (3rd normal form)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly