Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Help with SQL statement
Akram JARO <ajaro_at_synavant.com> wrote in message
news:zOCG5.104$dT.6654_at_nreader1.kpnqwest.net...
> Select a.barcodes
> from tableA a
> where a.barcodes <>(select b.barcodes
> from tableB
> Where a.barcodes <> b.barcodes );
>
>
I don't think this will work, your subselect will retrieve (or may retrieve)
multiple records, therefor you cannot use the '<>' operator, you'll have tu
use 'not in' instead. But then still...
I would go for:
select barcodes
from table A
where barcodes not in (select barcodes from B);
Reinier. Received on Fri Oct 20 2000 - 01:33:33 CDT