Hi,
how to realize the following query:
SELECT id FROM database1.source_table
WHERE id NOT IN (SELECT transaction_id FROM database2.tracking_table);
database1 and database2 are 2 different datasources
Is it possible to do this in one query or do I have to get an array of transaction_id first to use it in the second query?
Or maybe easier to realize the following:
SELECT s.id
FROM database1.source_table AS s
LEFT JOIN database2.tracking_table AS t ON s.id = t.transaction_id
WHERE t.transaction_id IS NULL