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

Home -> Community -> Usenet -> comp.databases.theory -> Re: Conjunction junction

Re: Conjunction junction

From: Laconic2 <laconic2_at_comcast.net>
Date: Mon, 1 Nov 2004 12:14:27 -0500
Message-ID: <JoWdnSRsGMlg8xvcRVn-3w@comcast.com>

"Alan" <alan_at_erols.com> wrote in message news:2un1tqF2bo5daU1_at_uni-berlin.de...

> The worst part is, we don't even have an XOR in SQL.

Most of the time, you can get away with "not equal to" instead of XOR. This is usually written "<>", but can be written as "=!" in some dialects, IIRC. So

select * from blocks
where
(color = 'RED') <> (shape = 'SQUARE')

It's ugly, but it's better than nothing. Received on Mon Nov 01 2004 - 11:14:27 CST

Original text of this message

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