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: Me <somebudy_at_despammed.com>
Date: Sun, 15 Jun 2003 21:09:48 +0530
Message-ID: <ip4pev0csp1mogd930p74tthvc13h84102@4ax.com>


On Sat, 14 Jun 2003 13:09:53 +0000, andrewst wrote:  

>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).
 

But the date on which the proposal was submitted has been stored in PROP_POLICY_DATA->PROP_DATE   Moreover it is the age of the proposer at the time submitting the proposal that is crucial. Then the policy may be alloted for a period of 5 or 10 years during which the actual age of the proposer is immeterial.  

If you have any other suggestions please mail them to me.  

You can also see the form:
http://www.licindia.com/lichome2/300(bn).doc  

Thanks a lot.

-- 
I had sent you a mail but it bounced back.
Please answer this post by mail rather than answering it in the group if it's ok
with you.
Thanks.
Received on Sun Jun 15 2003 - 10:39:48 CDT

Original text of this message

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