select * from table1
where not exists (
select * from table2
where table2.id=table1.id
and table2.ver=table1.ver
)
where not exists (
select * from table2
where table2.id=table1.id
and table2.ver=table1.ver
)
where not exists (select * from t2 where t2.id = t1.id and t2.ver = t1.ver)