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: id <> '2'

Re: id <> '2'

From: Mark C. Stock <mcstockX_at_Xenquery>
Date: Wed, 21 Sep 2005 18:03:51 -0400
Message-ID: <q9OdnZMzlbBRRazeRVn-uw@comcast.com>

"mike" <hillmw_at_charter.net> wrote in message news:1127339848.337032.301560_at_z14g2000cwz.googlegroups.com...
>I guess I could use a join like:
>
> select *
> from mytable
> where id<>'2'
> union
> select *
> from mytable
> where id is null
>
> Any other ideas?
>

see my other post re: NVL()
or you could us an OR instead of UNION

++ mcs Received on Wed Sep 21 2005 - 17:03:51 CDT

Original text of this message

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