Reputation: 1
I have 250 records in one table and after extraction into stagging the count is 249 Records, I am missing one record.
how to find out the missing records in SQL SERVER ???
Upvotes: 0
Views: 46
Reputation: 3084
select * from BiggerTable
where BiggerTable.id not in (select id from SmallerTable)
Upvotes: 1
Reputation: 2522
select
*
from tableAll
left join TableLess
on tableAll.ID = TableLess.Id
where
TableLess.Id is null
Upvotes: 0