Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Similar Rows...

Re: Similar Rows...

From: Steve Blomeley <steveblomeley_at_yahooDOTco.uk>
Date: Thu, 02 Nov 2000 23:15:08 +0000
Message-ID: <3A01F57C.A5CB28C4@yahooDOTco.uk>

Florent,

You can do this in SQL with :

SELECT *
FROM mytable tab1
WHERE EXISTS( SELECT *

              FROM   mytable tab2
              WHERE  tab2.code = tab1.code
              AND    tab2.name != tab1.name )
/

Note: This would not pick up rows where the code column was NULL.

Regards
Steve Blomeley Received on Thu Nov 02 2000 - 17:15:08 CST

Original text of this message

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