Compare the table one with table 2 and update the column values in table 2 which is not mathcing in SQL code example
Example 1: sql difference between tables
-- Oracle
-- Example
SELECT *
FROM Table1 -- the table containing extra records
MINUS
SELECT *
FROM Table2;
-- Syntax
SELECT *
FROM <table-1> -- the table containing extra records
MINUS
SELECT *
FROM <table-2>;
Example 2: how to make sure two tables have same exact data in sql
Table1 MINUS Table2 ->> 0 Row && Table2 MINUS Table1 ->>0 Row