Академический Документы
Профессиональный Документы
Культура Документы
(0, 1) (1, 1)
PROJDEPT
single-valued vs. multi-valued
stored (or, base) vs. derived
key attributes: attributes whose values are distinct for
each individual entity instance (establishes a uniqueness
SUPERVISION
(0, N) constraint on entities)
a simple attribute is associated with a domain or value
set, specifying the valid values for the attribute
NOTE: DEPT
EMP.ename (lastname, firstname, middlename) -> composite composite multi-valued attributes may be nested (a.k.a.
{EMP.address} -> multi-valued: up to two addresses per
(deptid, dname)
complex attributes)
employee
EMP.age -> derived: current date - EMP.bday (in years)
1
relationship types/sets relationship types/sets
a relationship type, R, among entity types E1, E2,… En degree of a relationship type:
defines a set of association among entities from these number of entity types associated by the relationship
types (referred to as the participating entity types); may be one of unary (a.k.a. recursive relationships),
each relationship instance in R represents an association binary, ternary, … n-ary
which includes exactly one entity instance from each
participating entity type
a relationship type is characterized by its degree and its
structural constraints; furthermore, a relationship type
may also have attributes
one or more entity types may be associated via one or
more distinct relationship types
Structural Constraints
Structural Constraints
(0,1) (1,1)