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: Malcolm Dew-Jones <yf110_at_vtn1.victoria.tc.ca>
Date: 21 Sep 2005 15:32:42 -0700
Message-ID: <4331df8a$1@news.victoria.tc.ca>


mike (hillmw_at_charter.net) wrote:
: I guess I could use a join like:

: select *
: from mytable
: where id<>'2'
: union
: select *
: from mytable
: where id is null

First, that is not a join, it's a union.

Second, yes I guess you could use that, but it is complete over kill. Read up on the syntax and capabilities of expressions in the WHERE clause. Things like "i=1 and j=2" are standard logic expressions and work in SQL as in most other computer languages.

Third, 2 is a number, etc etc, (but someone mentioned that elsewhere).

--

This programmer available for rent.
Received on Wed Sep 21 2005 - 17:32:42 CDT

Original text of this message

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