Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: sql question...
oispeggy_at_acsu.buffalo.edu wrote:
>
> Learn something new every day....
>
> 1.
> select lname, fname This returns everyone with 'N' or 'G' or ' '.
> from resdemo None with 'Y'. None with null.
> where fellow != 'Y'
>
>>
Because it's supposed to select rows that "make" (fellow!='Y') TRUE. But, (null!='Y') is not TRUE (it's not FALSE either go figure :-) )
In your case you could probably do something like:
select lname, fname
from resdemo
where nvl(fellow,'N')!='Y'
Hope it helps,
Igor Received on Thu Jun 12 1997 - 00:00:00 CDT
![]() |
![]() |