- 7,700
- 12,698
Hi all,
I am trying to find a method to determine if two tables T1, T2 (of any size) in MSSQL2012 are equal.
Please just give hints
My idea is to use the "Except" operator this way:
Select * from T1
Except
(Select * from T2)
And I should get an empty table with columns in both, but with no values entered.
Does this work? Any other hints?
I am trying to find a method to determine if two tables T1, T2 (of any size) in MSSQL2012 are equal.
Please just give hints
My idea is to use the "Except" operator this way:
Select * from T1
Except
(Select * from T2)
And I should get an empty table with columns in both, but with no values entered.
Does this work? Any other hints?