I want to find rows from a database table that are not in a set of rows. In SQL I would do:
SELECT t1.*
But, I want to do this where Table1 isn't a table, but row in my input stream. Table2 is big, so I would rather not read
it in, but rather let the DBMS do the work. Is this possible? The only thing I've figured out is to write my stream
to a temporary table.
SELECT t1.*
FROM Table1 t1
LEFT JOIN Table2 t2
ON t1.A = t2.A
AND t1.B = t2.B
WHERE t2.B IS NULL
But, I want to do this where Table1 isn't a table, but row in my input stream. Table2 is big, so I would rather not read
it in, but rather let the DBMS do the work. Is this possible? The only thing I've figured out is to write my stream
to a temporary table.