Module - 2. Relational Model
Module - 2. Relational Model
The data type describing the type of values that can appear in each
column is represented by domain of values.
Juniper Business Use Only
Domains, Attributes, Tuples, and Relations:
A domain D is a set of atomic values.
A common method of specifying a domain is to specify a data type from
which the data values forming the domain are drawn.
Interpretation(Meaning) of a Relation.
b. Hence, composite & multivalued attributes are not allowed. This model
is called Flat relational model.
4. Interpretation of Relation:
The first tuple in the table of student assert the fact that there is a STUDENT
whose Name is Benjamin Bayer, SSN is 305-61, age is 19 and so on.
Juniper Business Use Only
Relational model constraints & Relational DB Schema
Constraints on DB can generally be divided into 3 main categories:
This means, no two tuples can have the same combination of values
for all their attributes.
t1[sk] =! t2[SK]
Any such set of attributes SK is called a Super key of the relation schema
R.
Minimal super Key: is a super key from which we cannot remove any
attribute.
A relational schema may have more than one key. This keys we say it as
Candidate key.
ex: Car relation has two candidate key: License_num & engine_num.
Having Null values for the primary key implies that we cannot identify
same tuples.
i. Insert operation:
b. Key constraints can be violated if a key value in the new tuple t already
exists in another tuple in the relation r(R).
c. Entity integrity can be violated if the primary key of the new tuple t is
Null.
22
24
25
26