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: Data differences in two schemas

Re: Data differences in two schemas

From: Edzard <edzard_at_volcanomail.com>
Date: 11 Jun 2002 12:20:31 -0700
Message-ID: <5d75e934.0206111120.361a17c3@posting.google.com>


Hello,

A conservative programmer like me would use plain SQL:

(

SELECT ‘<', t.* FROM schema1.employee t
MINUS
SELECT ‘<', t.* FROM schema2.employee t
)
UNION ALL
(

SELECT ‘>', t.* FROM schema2.employee t
MINUS
SELECT ‘>', t.* FROM schema1.employee t
)
ORDER BY 2, 3, 4, 1
/

Yes, the arrow-signs are as intended.

As this query does not mention column names, you may easily generate it for all tables (make a two-stage SQL script)

Edzard Pasma Received on Tue Jun 11 2002 - 14:20:31 CDT

Original text of this message

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