Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not in with multiple field
Message
 
 
To
08/07/2003 15:08:39
David Brunelle
Université de Sherbrooke
Sherbrooke, Quebec, Canada
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00808135
Message ID:
00808177
Views:
17
>Actually, when I do that, it always return 0 records, not matter if I do In or Not In

What's the format and size of ID,ID2,ID3 and ID4 fields in both tables? Do you've nulls in those fields. Try to run query and subquery separately and compare output.
Select ID + ID2 + ID3 + ID4 from Test  
Select distinct ID + ID2 + ID3 + ID4 from site
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform