L
L
Light7772017-03-09 07:22:51
Oracle
Light777, 2017-03-09 07:22:51

How to display discrepancies from two large tables?

Hello!
There are two tables in which approximately on 22 million records. You need to check them and remove the discrepancies. Advise the fastest way to withdraw the difference.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Axian Ltd., 2017-03-09
@Light777

Is it https://docs.oracle.com/cd/B28359_01/server.111/b2... ?
---------------------
INTERSECT Example The following statement combines the results with the INTERSECT operator, which returns only those unique rows returned by both queries:
SELECT product_id FROM inventories
INTERSECT
SELECT product_id FROM order_items
ORDER BY product_id;
MINUS Example The following statement combines results with the MINUS operator, which returns only unique rows returned by the first query but not by the second:
SELECT product_id FROM inventories
MINUS
SELECT product_id FROM order_items
ORDER BY product_id;
----------------------

D
DefineDef, 2017-03-20
@DefineDef

You can use dbForge Schema and Data Compare for Oracle for this task

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question