Mohammed Ashraf

Mohammed Ashraf

  • 545
  • 2.3k
  • 506.4k

SQL Server Query to select items which not in a listbox

Mar 21 2017 2:34 AM
 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)