sql - Oracle:比较两个不同表中没有主键的字符串列以查找匹配/不匹配的字符串
解决方案
您可以在连接条件中使用full outer join
withupper
和replace
function,如下所示:
Select t1.str, t2.str,
Case when t1.str is not null and t2.str is not null then 'exist in both table'
when t1.str is not null then 'missing in table2'
Else 'missing in table1'
End as differences
From table1 t1 full join table2 t2
On upper(replace(t1.str,' ','') = upper(replace(t2.str,' ','')
推荐阅读
- javascript - jQuery .on('load') 适用于一个功能,但不是不同的功能
- angular - 子组件在不同父组件中时的样式不同
- python - Weird behavior of barplot from python matplotlib with datetime
- facebook-graph-api - 停止来自 Facebook 的自动消息,只接收从我的服务器发送的消息
- node.js - Mongoose 错误:openuri() 的 uri 参数必须是字符串,得到“对象”。确保 mongoose.connect() 的第一个参数是一个字符串
- javascript - ES6 将 url 附加到数组中的映射对象
- c - 为什么“==”对字符指针返回true?
- c# - c# 低级输入解码消息参数
- ios - 为什么我的 Parse 注册代码没有运行?
- python - 如何获取图片的时间戳?