select * table1 union select * table2 If the quantity is the same of any of the tables, then tables are equal select * table1 except select * table2 The result are the different rows.
select * table1
union
select * table2
If the quantity is the same of any of the tables, then tables are equal
select * table1
except
select * table2
The result are the different rows.