Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Select not in

$
0
0
I want to find rows from a database table that are not in a set of rows. In SQL I would do:


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.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>