I presume this is the same as asking is it possible to have a row in
table1 whose "key" doesn't match the key of any row in table2 and avoid
"reading" that table1 row? I'd say the answer to that is no, ie., it's
not logically possible to know that a table1 row's key doesn't match a
table2 key without knowing the table1 key.
So my guess is that you are really intending a situation that has
physical nuances not mentioned in the question as written.
As far as I know, "table scan" means sequential reading of all the
physical blocks and thus all the rows of a table. I would think any dbms
that supports clustered indexes would give O(N) performance, by scanning
both tables in parallel, also that this would be pretty good performance
too. Is it possible that the keys don't have clustered indexes? If
neither does, performance could be pretty poor. Non-clustered indexes
wouldn't be good enough, nor would some pathologically fragmented
underlying filesystem where every physical block was far away from the
sequentially adjacent block.
I'm saying this without knowing anything about Informix, not even what
terminology it uses.