7
Answers

SQL Server Query to select items which not in a listbox

 ID Name
 1    Jose
 2 Jayan
 3 Jinas
 4 Jasmin
I have a table in sql server. And I made a ListBox in windows Form application.
 1
 2
 4
 
 I want to select names of which ID not shown in the ListBox by using 'not in' statment.
 
Please help 
 
Answers (7)