I have a query with just only 2 tables. Tables are related as one to many by ID field.
I use subquery which gonna check all rows with same ID from second query.
When I use exists predicate - everything works, when I add not to exists - quesry hangs...
select ID1 from table1 where...