- SELECT count(*) FROM Table1 t1
- SELECT count(*) FROM Table1 t1 Where t1.ID not in (select ID from Table2)
- SELECT Count(*) FROM Table1 t1 inner join Table2 t2 on t1.ID = t2.ID
Results:-
- 83
- 62
- 26
Why there is difference in results of 2nd and 3rd query when total is 83 from Ist Query? Is it not supposed to be either 57 (from 2nd query) if 3rd's result is 26
OR
21 (from 3rd query) if 2nd's result is 62? Can someone help me out here whats wrong in my select statements above?