Chapter 3 Flashcards
define entities
specific things or objects described by database
define attributes
properties used to describe an entity
what are the 2 types of attributes?
Simple = attribute has a single value composite = attribute composed of multiple attributes
what is a multi-valued attribute?
attribute that has multiple attributes
i.e a car can be red and black at the same time
define entity type
entities with the same basic attributes like a java class
define key attribute
attribute that distinguishes multiple entities of the same entity type
- Can be composite
define entity set
current state of all entities of an entity type
define value set
set of values associated with an attribute
define relationship
relates 2 or more distinct entities with a specific meaning
- degree of relationship is the number of participating entities
what are the 3 cardinality ratios?
specifies maximum participation
- 1 to 1
- 1 to many
- many to many
what are the 2 existence dependency constraints?
specifies minimum participation?
- zero (optional participation, existence-dependent)
- one or more (mandatory)
define weak entity type
entity that doesn’t have a key attribute and is dependent on another entity type for identification
define partial key
key attribute when combined another key attribute)
what are sub/super classes in enhanced ERDs?
- 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
What are the 3 basic constraints of specializations
- Membership
- Disjointness
- Completeness