Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select aninhado com NOT IN
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00814277
Message ID:
00815385
Views:
7
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
Previous
Reply
Map
View

Click here to load this message in the networking platform