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: SQL query problem

Re: SQL query problem

From: Isa <isapmon_at_terra.es>
Date: 23 Jan 2006 09:42:31 -0800
Message-ID: <1138038150.974127.231180@g49g2000cwa.googlegroups.com>


Hi, Mikeyb:
you can try the next:

select distinct person
from table t1
where 0=(select count(*) from table t2

              where t2.person=t1.person and fruit in ('Apple','Peach'));

I hope it's useful to you,
Regards,
Isa Received on Mon Jan 23 2006 - 11:42:31 CST

Original text of this message

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