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: Need Help with SQL

Re: Need Help with SQL

From: senthil <rsenthilkumar_at_my-deja.com>
Date: 2000/07/03
Message-ID: <8jqm1a$tv5$1@nnrp1.deja.com>#1/1

hi,
i hope this query may solve your requirement.

select acctno from table1 group by ssn having count(*) > 1 union
select acctno from table1 where no in (select acctno from table2) union
select acctno from table2 group by ssn having count(*) > 1 union
select acctno from table2 where no in (select acctno from table1);

thanks,
senthil

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Jul 03 2000 - 00:00:00 CDT

Original text of this message

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