Chapter 3 Flashcards

1
Q

define entities

A

specific things or objects described by database

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

define attributes

A

properties used to describe an entity

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

what are the 2 types of attributes?

A
Simple = attribute has a single value
composite = attribute composed of multiple attributes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is a multi-valued attribute?

A

attribute that has multiple attributes

i.e a car can be red and black at the same time

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

define entity type

A

entities with the same basic attributes like a java class

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

define key attribute

A

attribute that distinguishes multiple entities of the same entity type

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

define entity set

A

current state of all entities of an entity type

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

define value set

A

set of values associated with an attribute

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

define relationship

A

relates 2 or more distinct entities with a specific meaning

  • degree of relationship is the number of participating entities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what are the 3 cardinality ratios?

A

specifies maximum participation

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

what are the 2 existence dependency constraints?

A

specifies minimum participation?

  • zero (optional participation, existence-dependent)
  • one or more (mandatory)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

define weak entity type

A

entity that doesn’t have a key attribute and is dependent on another entity type for identification

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

define partial key

A

key attribute when combined another key attribute)

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

what are sub/super classes in enhanced ERDs?

A
  • subclasses function just like java where subclasses inherit attributes of superclass (is a special case of a superclass)
  • superclasses are general cases of subclasses, also like java
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the 3 basic constraints of specializations

A
  1. Membership
  2. Disjointness
  3. Completeness
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How can membership constraints be defined?

A

predicate/condition-defined: based on some condition
attribute defined: all subclasses have their membership condition on the same attribute
user defined: no condition so membership is specified by the user on an entity-to-entity basis

17
Q

How can disjointness constraints be defined?

A
  • entities of subclasses of the same superclass are mutually exclusive
  • indicated by d
18
Q

How can overlapping constraints be defined?

A
  • entities of subclasses of the same superclass can overlap
  • indicated by o
19
Q

What is the total completeness constraint?

A
Every entity of the superclass must belong to some subclass
indicated with double lines in eer
20
Q

What is the partial completeness constraint?

A
an entity may not belong to any subclass
indicated with single line in eer