I have two lists of names:
1) In table 'Names'
   Carl
   Tom
   Dan
   Thomas
   Beneth
2) In variable @string
   Tom
   Thomas
   Ben
   John
   Peter
Tables:
Names
Columns:
NameId
Name
The first list is in my database, but the second is in a string. I'm looking for a query that can give me names from @string, which are NOT in table Names. In this example, this should be: Carl, Dan, Beneth. I have no idea how to do that. If it's possible - no-procedure will be great.
 
     
     
     
    