




















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















































Dr. Sunnie S. Chung
CIS430/
Define each of the following database terms
Relation
Primary key
Foreign key
Referential integrity
Field
Data type
Null value
Discuss the role of designing databases in theanalysis and design of an information system
Learn how to transform an entity-relationship (ER)Diagram into an equivalent set of well-structuredrelations
Data represented as a set of related tables orrelations
Relation
relation consists of a set of named columns andan arbitrary number of unnamed rows
changing the meaning or use of the relation
sequence
Transforming E Transforming E
R Diagrams into R Diagrams into
Relations Relations
It is useful to transform the conceptual datamodel into a set of normalized relations
Steps
Represent entities
Represent relationships
Normalize the relations
Merge the relations
Change attributes that representrelationships into relationship types
Determine cardinality ratio andparticipation constraint of eachrelationship type
Model concept first as an attribute
Refined into a relationship if attribute is areference to another entity type
Attribute that exists in several entitytypes may be elevated to an independententity type
Can also be applied in the inverse
Specify structural constraints onRelationships
Replaces
Cardinality ratio (1:1, 1:N, M:N)
and
single/double line notation for
Participation
constraints
Associate a pair of integer numbers
(min, max)
with each participation of an entity type
E
in a
relationship type
R
,
where 0 ≤ min ≤ max and
max ≥ 1
Transforming E Transforming E
R Diagrams into R Diagrams into
Relations Relations
The
primary key
must satisfy the following
two conditions
a.
The value of the key must
uniquely identify
every row in the relation
b.
The key should be
nonredundant
Transforming E Transforming E
R Diagrams into R Diagrams into
Relations Relations
Represent Relationships
Binary
1:N
Relationships
Add the
Primary key attribute
(or attributes) of
the entity on the one side of the relationship as a Foreign key
in the relation on the other (N) side
The one side
migrates
to the many side