Found the best answer to my question here: NOT IN clause and NULL values
Neither of the following two queries return any results:
select upc
from staging..posrecords
where upc not in (select upc from mrs..items)
select upc
from staging..posrecords
where upc in (select upc from mrs..items)
Both of the following queries do return results:
select upc from staging..posrecords
select upc from mrs..items
Given that the latter two queries do both return results, I don't understand how it's possible that neither of the first two queries return any results whatsoever. Maybe it's late and I'm just missing something really obvious, but I'm about as stumped as I can be right now.
Furthermore, the following query also does returns results
select upc
from mrs..items
where upc not in (select upc from staging..posrecords)
That being the case, I am even more baffled as to why the very first query up above doesn't return any results.