Is Minus legal function in T-SQL?
select * from tableA
minus
select * from tableB
Table A has 1,000,000 records
Table B has 15,000,000 records
I have three key fileds for comparison, but if I do:
select * from tableA
minus
select * from tableB
where TableA.col1=TableB.Col1
and TableA.col2=Tableb. col2
I'm testing, it works fine, but I never used this function. Any input greatly appreciate.
select * from tableA
minus
select * from tableB
Table A has 1,000,000 records
Table B has 15,000,000 records
I have three key fileds for comparison, but if I do:
select * from tableA
minus
select * from tableB
where TableA.col1=TableB.Col1
and TableA.col2=Tableb. col2
I'm testing, it works fine, but I never used this function. Any input greatly appreciate.