select * from table where
(条件1 and not exist (select * from table where 条件2))
or
(条件2 and not exist (select * from table where 条件1))
select * from table where
(条件1 and not exist (select * from table where 条件2))
or
(条件2 and not exist (select * from table where 条件1))