Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
superslip103
Starting Member
1 Post |
Posted - 2006-04-07 : 04:38:51
|
| HiI'm trying to find some entries in a table which aren't there, from a list I have. I know "NOT EXISTS" does not work. Here's what I want to do. Basically I need to check that a list of entries in my table exists before I do a mass update on the data. So I did a SELECT * FROM AMHOSTWHERE hostname IN( 'hostname1', 'hostname2', ....... 'hostname700');This returned 697 results, which means that 3 entries are missing. How Do I find out which 3 are missing from the table?Please help!Regards,Rohit |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
shallu1_gupta
Constraint Violating Yak Guru
394 Posts |
Posted - 2006-04-07 : 04:51:06
|
| Use not inSELECT * FROM AMHOSTWHERE hostname NOT IN('hostname1','hostname2',.......'hostname700'); |
 |
|
|
|
|
|