Check out example codes for "sql difference between tables". It will help you in understanding the concepts better.

Code Example 1

-- 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>;

Learn ReactJs, React Native from akashmittal.com