The Relational Model Flashcards

1
Q

Describe an Entity

A

The important things in the real world that need to be modelled.

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

Give some examples of entities

A

People, places, objects, events

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

Describe an Attribute

A

Individual items of data associated with an entity.

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

Give some examples of an Attributes

A

Name, national insurance number, weight, date of manufacture

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

Describe a Relationship

A

Ways in which entities are connected.

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

Describe what is meant by constraints in regards to a relational database.

A

Rules which place limits on the data that is allowed

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

What is meant by ‘Domains’?

A

The set of possible values for a column, e.g.

  1. Date
  2. Varchar
  3. Integer
  4. Real
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define Entity Integrity

A

the ability to uniquely identify one row in a table.

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

Define a ‘Key’

A

an attribute (or group or attributes) that differentiates the rows.

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

What attributes count towards a good key?

A

Unique and doesn’t change,

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

Define a ‘Superkey’

A

Uniquely identifies a row.

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

Define a ‘Candidate Key’

A

Uniquely identifies a row and contains no redundant attributes

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

Define a ‘Primary Key’

A

Selected candidate key

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

Cardinality & Optionality = ____

A

Multiplicity

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

What does the JOIN operation do?

A

Returns a combination of columns from more than one table where some condition is true.

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

What is a Foreign Key do?

A

Identifies a unique related row in another table.

17
Q

What is a main condition of Referential Integrity?

A

Must be possible to identify a parent record, i.e., If the foreign key field has a value, the corresponding parent record must exist.

18
Q

What does the DBMS prevent?

A
  1. Insertion of a child record with an unknown foreign key value
  2. Deletion of a parent record while child records still exist