For example, if I want this table to automatically recognise that people that own both cats and dogs are cool. Something like:
CREATE TABLE my_new_table ( name VARCHAR(13),<p>
DateOBirth DATE NOT NULL,<p>
has_a_dog BOOLEAN,<p>
has_a_cat BOOLEAN,<p>
is_really_cool BOOLEAN,<p>
CHECK (CASE WHEN has_a_dog = TRUE<p>
AND has_a_cat = TRUE <p>
THEN is_really_cool = TRUE));<p>
Not quite, but you could create the table, then make a view over the table which does have that ability and use the view in your applications.