Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to exclude
Message
De
27/06/2011 09:23:18
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Best way to exclude
Divers
Thread ID:
01516221
Message ID:
01516221
Vues:
101
Hi

I'm extracting some records and I want to exclude some of them from being extracted.

So I say
SELECT * from member 
where individual ref not in (select individual_ref from attribute where attribute.attr_code_ref = 1242 and individual_ref is not NULL and valid_to < getdate())
Is that the best way of doing this. ?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform