Week 2 Flashcards

1
Q

What is a relational data model?

A

A means of storing information about a database system in tables called relations

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

What is a table in a relational data model?

A

A collection of tuples (rows) that share the same attributes

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

What is a tuple in a relational data model?

A

A specific instance that relates to one ‘thing’ in the database system

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

What is the domain of an attribute?

A

The set of allowed values that an object can take

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

What is generalisation?

A

The process by which a lower level entity inherits all the attributes and relationship participation of the higher level entity it is linked to

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

What is the benefit of generalisation?

A

Avoids the duplication of data

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

What does the completeness constraint specify?

A

Whether an entity in a superclass entity set must belong to at least one of the subclass entity sets within a generalization

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

What are the two ways an entity can participate in a superclass entity set?

A

Total, Partial

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

What is total participation?

A

Where an etity must belong to one of the subclass entity sets

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

What is partial participation?

A

Where an entity need not belong to one of the subclass entity sets

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

What are inheritance constraints concerned with

A

Whether or not entities may belong to more than one subclass entity set within a generalization

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

What is overlapping inheritance?

A

An entity can belong to more than one subclass entity set

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

What is the inheritance called when an entity can belong to at most one subclass entity set?

A

Disjoint

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

State ER design decisions we may have to make

A
  • Whether it should be entity set or attribute
  • Whether it should be entity set or relationship set
  • The placement of attributes on entity sets or relationship sets
  • The use of an n-ry relationship versus multiple binary relationship sets
  • The use of a strong or weak entity set
  • The use of generalisation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a relationship set?

A

An action that occurs between entities

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

Where should an attribute of many to many relationships be placed?

A

On the relationship set

17
Q

Where should an attribute of one to many relationship be placed?

A

On the relationship set or on the many-side entity set

18
Q

Where should an attribute of a one to one relationship be placed?

A

On the relationship set or in either entity set

19
Q

When is inheritance applicable?

A
  • When all potential subclasses share all attributes

- When all potential subclasses share all relationships

20
Q

What are the four steps in the simple modelling methodology?

A
  1. Decide what entity sets are required
  2. For each entity set, decide on attributes
  3. Decide on relationships between entity sets
  4. Decide on generalisation/specialisation