Module2 Chapter1
Module2 Chapter1
The Relational
Data Model and
Relational
Database
Constraints
Domain D
Set of atomic values
Atomic
Each value in the domain is indivisible
Specifying a domain
Data type specified for each domain
we can specify the following previously defined domains for some of the attributes of the
STUDENT relation: dom(Name) = Names; dom(Ssn) = Social_security_numbers;
dom(HomePhone) = USA_phone_numbers3 , dom(Office_phone) = USA_phone_numbers, and
dom(Gpa) = Grade_point_averages.
NULL values
Represent the values of attributes that may be unknown or may
not apply to a tuple
Meanings for NULL values
• Value unknown
• Value exists but is not available
• Attribute does not apply to this tuple (also known as value undefined)