Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select aninhado com NOT IN
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00814277
Message ID:
00815385
Vues:
8
O "IN" penaliza demais o select, use sempre em ultimo caso.

O que você pode fazer é um left join e filtrar as informacoes com Having:
select tem,naotem from tem left join naotem on tem=naotem having !isnull(naotem)
Se você usar o full, você tem o resultados das duas tabelas na mesma hora.
Cordialmente,

Fabiano Costa
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform