I can write a query to solve my requirement in any of the followings :-1.select *from awhere NOT EXISTS(select 1from bwhere a.id = b.id)union allselect *from b2.select (case when b.id is not null then b.id else a.id) as idfrom aleft join b on a.id = b.idAny one please tell me which one is better?
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных