Please try:
select * from table1
union
select * from table2
where id not in(select id from table1)
Or:
select * from table1
union
select * from table2
where id not in(select id from table1
where popcid1 is not null or
popcid2 is not null or
popcid3 is not null)
Output:
If you have any question, please feel free to let me know.
Regards
Echo
If the answer is helpful, please click "Accept Answer" and upvote it.