The answer should be
Ty kind stranger for helping me out.
CodePudding user response:
You can use this query for searching items that are on the desk and not on the other desk:
select *
from [Office] [outer]
where not exists( select 1 from [Office]
where Item = [outer].Item
and WhoseDesk <> [outer].WhoseDesk )