Question

Inline Querier EXCEPT vs NOT IN

  • 11 April 2018
  • 1 reply
  • 1 view

Badge +10

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?


1 reply

Userlevel 2
Badge +17

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)

Reply