| 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
| ID | Name |
| 1 | Jose |
| 2 | Jayan |
| 3 | Jinas |
| 4 | Jasmin |
| 1 |
| 2 |
| 4 |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 20, 2017, 10:59 PM EDT
Mohammed AshrafRank #900 · 2.3K reputationPosted Mar 20, 2017, 11:05 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Mar 20, 2017, 11:06 PM EDT
Mohammed AshrafRank #900 · 2.3K reputationPosted Mar 20, 2017, 11:14 PM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 20, 2017, 11:18 PM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 20, 2017, 11:42 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Mar 21, 2017, 1:58 AM EDT