General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Select aninhado com NOT IN
Estou fazendo um relatorio de produtos sem movimentação em um determinado periodo, para isto Gerei dois cursores com o SELECT:
1 - Entrada de Produtos no Periodo
2 - Saída de Produtos no Periodo
Preciso fazer outro select em que me retorne o que TEM em um que NÃO tem no outro. Em ambos tenho o mesmo campo em comum.
Estou tentando mais ou menos assim:
Select From cursorA not in Select ...CursorB ....
Sei estou errando na sintaxe.
Alguem tem um exemplo do not in usando um Select aninhado ??
Obrigado
Marco
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only