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: mikeyb <bamikeb_at_hotmail.com>
Date: 24 Jan 2006 00:42:25 -0800
Message-ID: <1138092145.805446.270870@z14g2000cwz.googlegroups.com>


Thanks for both replies, I'd finally managed to get a result from this

SELECT distinct person
  FROM table t1
 WHERE not exists (SELECT *

                      FROM table t2
                     WHERE t2.fruit In ('apple','peach')
                       and t1.person=t2.person)

So I'll take a look at all three versions and see which works fastest.

Thanks for your help both Sim and Isa

mike Received on Tue Jan 24 2006 - 02:42:25 CST

Original text of this message

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