【发布时间】:2013-09-04 03:12:54
【问题描述】:
我有两个表 table1 和 table2
在 table1 我有两列 table1.userid 和 table2.full_name 在 table2 我有两列 table2.userid 和 table2.ssn
我想要 table1 和 table2 中都存在用户 ID 的记录。
如果 table2 中存在 userid 的记录,则应忽略它们。如果不存在,则还需要 table1 中的数据。还想要 table2 中的其余数据。
我应该使用内部/外部/完全联接吗?
你能帮我做同样的事情吗?
【问题讨论】:
标签: oracle join inner-join outer-join