Data Model
Data Model
A relation is defined as a set of tuples that have the same attributes. A relation is usually described as a table, which is organized into rows and columns. All the data referenced by an attribute are in the same domain and conform to the same constraints. The relational model specifies that the tuples of a relation have no specific order and that the tuples, in turn, impose no order on the attributes. Relations can be modified using the insert, delete, and update operators. It is necessary for each tuple of a relation to be uniquely identifiable by some combination (one or more) of its attribute values. This combination is referred to as the primary key.
Domain
A domain describes the set of possible values for a given attribute, and can be considered a constraint on the value of the attribute. The character data value 'ABC', for instance, is not in the integer domain. The integer value 123, satisfies the domain constraint.
Constraints
Constraints make it possible to further restrict the domain of an attribute. provide one method
of implementing business rules in the database. Constraints restrict the data that can be stored in relations. Constraints can apply to single attributes, to a tuple (restricting combinations of attributes) or to an entire relation. Since every attribute has an associated domain, there are constraints (domain constraints). The two principal rules for the relational model are known as entity integrity and referential integrity.
RELATION