CAP = { customer, agent, product, order }
Head( customer ) = { cid, cname, city, discnt } Head( customer ) = cid cname city discntA database schema is the set of all relational schemes for a database. |
|
Domains and Datatypes
|
|
city
might be the set of all character strings corresponding to cities in the US.
discnt
column might be defined as consisting of all floating-point numbers between 0.00 and 20.00.
customer
table to assure that the discnt
column always has a value between 0.00 and 20.00 inclusive.
SQL> ALTER TABLE customer3 MODIFY 2 discnt REAL CHECK ( discnt >= 0.00 AND discnt <= 20.00 ); |