Skip to main content
Question

Inline Querier EXCEPT vs NOT IN

  • April 11, 2018
  • 1 reply
  • 17 views

nicholas
Contributor
Forum|alt.badge.img+14

I want to use Inline Querier to find all rows in table CSV that are not in table DCDB. Lot_plan is the common column

this works (returns rows)

SELECT Lot_plan FROM CSV

EXCEPT

SELECT Lot_plan FROM DCDB

This does not work (returns zero rows)

SELECT * FROM CSV

WHERE Lot_plan NOT IN (SELECT Lot_plan FROM DCDB)

Why does the EXCEPT statement work and not the NOT IN statement?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • 7843 replies
  • April 11, 2018

I was not able to reproduce the issue. The NOT IN operator works fine, as well as the EXCEPT operator. See the attached demo: inlinequerier-except-vs-not-in.fmwt (FME 2017.1.2.1)