Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Verify data is identical methods - which is best?
select *
from a
minus
select *
from b
/
and
select *
from b
minus
select *
from a
/
Jared
On Mon, 28 Aug 2000, Steven Monaghan wrote:
> There is a major batch process running here, and I want to make sure that
> the modifications I have made to the SQL and PL/SQL create an identical
> result. I have an old copy of the result in temp tables, and the new data as
> well.
>
> Here were the ideas I had:
> 1 - Do a join on all columns and make sure num rows returned = num rows in
> each table.
> 2 - PL/SQL cursor on one table and check result on other table based on PK
> 3 - dump data to text files and diff in UNIX.
>
> Any suggestions on which would be best / fastest and if one of those methods
> above doesn't really give me the results I am looking for?
>
> TIA,
> Steve Monaghan
>
> -------------------------------------
> Steven Monaghan
> Oracle DBA
> MSC Industrial Direct Co., Inc.
> Melville, NY
> MonaghaS_at_mscdirect.com
> -------------------------------------
> --
> Author: Steven Monaghan
> INET: MonaghaS_at_mscdirect.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
Jared Still
Certified Oracle DBA and Part Time Perl Evangelist ;-)
Regence BlueCross BlueShield of Oregon
jkstill_at_bcbso.com - Work - preferred address
Received on Mon Aug 28 2000 - 11:47:33 CDT