create table Employee ( id integer primary key, name varchar(40), salary real, age integer check (age > 15), worksIn integer references Department(id), constraint PayOk check (salary > age*1000) );
On each attempt to change data, DBMS checks constraints.