Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Check constraint violated

Re: Check constraint violated

From: andrewst <member14183_at_dbforums.com>
Date: Sat, 14 Jun 2003 13:09:53 +0000
Message-ID: <3002704.1055596193@dbforums.com>

Originally posted by andrewst
> ALTER TABLE appointee
> ADD CONSTRAINT chk_nominee_age CHECK (age < 18);
Of course, Age is a rather silly column to hold in a table, because it is meaningless by itself. Without knowing the date when the Age value was entered/updated, it tells you only the the person is "at least" 17 (e.g.); by now he.she could be 18, 19, 42, ... What you should really hold is date of birth (or year of birth or whatever suits your needs).

--
Posted via http://dbforums.com
Received on Sat Jun 14 2003 - 08:09:53 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US