chapter 4 Flashcards

1
Q

what is cardinality

A

A property of an end of a relationship between X and Y that describes how many of X is related to Y

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

what is a relationship

A

It is the connection or association between objects

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

what is optionality

A

A property of an end of a relationship between X and Y that describes whether X must be or may be related to Y

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

when does it make sense to subdivide an entity

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

when does it make sense to subdivide an entity

A

This may be the case when a group of instances has special properties, such as attributes or relationships that exist only for that group

in this case the entity is called super type and the groups are called subtypes

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

what are the characteristics of subtypes

A
  • -> Inherits all attributes of the supertype
  • -> Inherits all relationships of the supertype
  • -> Usually has its own attributes or relationships
  • -> Is drawn within the supertype
  • -> Never exists alone
  • -> May have subtypes of its own
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

when an ER model is complete subtypes ____________-

A

never stand alone

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

a single subtype is exactly the same as _________

A

supertype

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

what are the 2 subtype rules

A

–> Exhaustive: Every instance of the supertype is also an instance of the subtype. All subtypes are listed without omission

–> Mutually exclusive: Each instance of a supertype is an instance of only one subtype

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

what is good practice in the conceptual modelling stage

A

it is good practice to include the OTHER subtype to make sure that your subtypes are exhaustive – that you are handling every instance of the supertype

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

since subtypes always exist when should you use subtypes

A

when a need exists within the business to show similarities and differences between instances, then subtype

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

what are the 3 questions to see if the subtype is properly identified

A

− Is this subtype a kind of supertype?
− Have I covered all possible cases? (exhaustive)
− Does each instance fit into one and only one subtype? (mutually exclusive)

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

what is a structural business rule

A

structural business rule indicates the types of information to be stored (attributes) and how the information elements interrelate(relationships).

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

what are procedural business rules

A
  • -> procedural rules deal with the prerequisties, steps, processes, or workflow requirements of the business
  • -> many procedural business rules are related to time: event A must happen before event B
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is the difference between structural business rule and procedural business rule

A
  • -> structural business rules can nearly always be diagrammed in the ERD
  • -> some procedural business rules cannot be diagrammed, but must still be documented so that they can programmed later.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is an example of a structural business rule

A

all teachers who teach at a school must possess a teaching license (attribute)

all orders in a restaurants must be handled by a staff member (relationship)

16
Q

what are some examples of procedural rules

A

a students must pass algebra and geometry to study trigonometry

17
Q

what is an enhanced er model

A

extends original ER model with new modeling constructs

18
Q

what is the definition of subtype

A

A subgrouping of the entities in an entity type that has

attributes distinct from those in other subgroupings

19
Q

define a supertype

A

A generic entity type that has a relationship with one or more subtypes

20
Q

what is attribute inheritance

A
  • subtype entites inherit values of all attributes in the supertype
  • an instance of subtype is also an instance of a supertype
21
Q

what is generalisation

A

The process of defining a more general entity type from a set of more specialized entity types. BOTTOM-UP

22
Q

what is specialisation

A

The process of defining one or more subtypes of the supertype and forming supertype/subtype relationships.

TOP-DOWN