sql to compare two tables and display different in sql server code example
Example: 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>;