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: existence question

Re: existence question

From: Jeff Kish <jeff.kish_at_mro.com>
Date: Wed, 21 Jul 2004 11:05:13 -0400
Message-ID: <mg1tf0l4uiidsqphgo09at37hqf63b64uc@4ax.com>


On Wed, 21 Jul 2004 14:34:31 GMT, Bricklen <bricklen-rem_at_yahoo.comz> wrote:

>Jeff Kish wrote:
>
>> Greetings.
>>
>> Can someone help me out here?
>> I have a table. with a unique index across five columns (c1, c2, c3, c4, c5.
>>
>> I was trying to figure out if there was a way to form an sql where clause that
>> would tell me if a certain business rule would be violated.
>>
>> The rule says, for a given (c1 c2), if you have any rows that have c4 and c5
>> null, then you can't have any other rows for that (c1 c2) which have a not
>> null c4 or a not null c5.
>>
>> I'm a bit out of practice.
>>
>>
>> Thanks
>> Jeff
>> Jeff Kish
>
>A CASE statement may do what you need, providing that you are on 816(?)+
Thanks. Actually it should be, but eventually other db's also are involved. Jeff Kish Received on Wed Jul 21 2004 - 10:05:13 CDT

Original text of this message

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