Here is my query I used to get UserID present in both where condition and TSTable
SELECT UserID
FROM TSTable
WHERE UserID IN (@UserID)
I need to to get the UserId from @UserID
where @UserID = ''IMS080'',''IMS108'',''IMS218''
which are not present in TSTable. How can I do this? For example, if I Execute the Query it should return value from IN condition 'IMS080' which is not present in TSTable.
Thanks in Advance
Is this what you're looking for?
Try this