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: Best way to compare contents of two tables?

Re: Best way to compare contents of two tables?

From: Steve Long <answers_at_ix.netcom.com>
Date: 1997/01/23
Message-ID: <32E7C492.7AB9@ix.netcom.com>#1/1

(
select * from table1
minus
select * from table2
)
union all
(select * from table2
minus
select * from table1
)

The minus is needed both ways.

The Mailman wrote:
>
> What is the best way to compare the contents of two tables to ensure that
> their data exactly reflects each other?
>
> Thanks for any info regarding this topic.
>
> Joe
  Received on Thu Jan 23 1997 - 00:00:00 CST

Original text of this message

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