我们可以在FULL OUTER JOIN创建的两个不同表格内容上使用DISTINCT关键字
答案 0 :(得分:2)
是的,甚至在三张桌子上:
select distinct t1.id, t2.col1, t3.col1
from table1 t1
full outer join
table2 t2
on t1.id = t2.t1_id
full outer join
table3 t3
on t1.id = t3.t1_id