We define an SQL relation by using the create table command: create table r(A1D1,A2D2, . . . , AnDn,
. . . ,
where r is the name of the relation, each Ai is the name of an attribute in the schema of relation r, and Di is the domain type of values in the domain of attribute Ai. The allowed integrity constraints include