Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not in with multiple field
Message
 
 
À
08/07/2003 15:08:39
David Brunelle
Université de Sherbrooke
Sherbrooke, Québec, Canada
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00808135
Message ID:
00808177
Vues:
16
>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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform