去掉部分重复
来源:互联网 发布:java中public方法 编辑:程序博客网 时间:2024/06/06 04:13
select tt.USERID,tt.USERNAME,
(select unitname from ow_org_uint where unittreecode = substr(tt.unittreecode,1,12)) unit1,
(select unitname from ow_org_uint where unittreecode = substr(tt.unittreecode,1,16)) unit2,
(select unitname from ow_org_uint where unittreecode = substr(tt.unittreecode,1,20) and length(tt.unittreecode)>=20) unit3
from
(select t1.USERID,t1.USERNAME,t3.UNITNAME,t3.unittreecode, DENSE_RANK() OVER(partition by t1.USERID, t1.USERNAME order by t3.UNITNAME) num
from ow_org_user t1,ow_org_uint_user t2, ow_org_uint t3 where t1.userid = t2.userid and t2.unitid = t3.unitid and t3.unittreecode
like (select unittreecode from ow_org_uint where unitid = '29CA558479AB94D30C5CDFE20E781452')||'%' and iszw='1') tt where tt.num = 1
0 0
- 去掉部分重复
- 把str1和str2合并成一个新的String [] 并去掉其中重复的部分
- c语言读取 unicode文件操作(去掉2个文件重复的部分)
- 去掉重复记录问题
- 去掉数组重复元素
- 去掉重复字符
- 去掉DataTable重复行
- 去掉字符串中的重复
- SQL SERVER 去掉重复
- sql 去掉重复记录
- DISTINCT 去掉重复记录
- Sql去掉重复行
- 游标去掉重复项
- sql去掉重复项
- 去掉重复的数字
- java 去掉重复数据
- SQL 去掉重复行
- 去掉重复内容
- RTMP协议发送H.264编码及AAC编码的音视频,实现摄像头直播
- hdu 2871 Memory Control
- 欢迎使用CSDN-markdown编辑器
- 常见表单重复提交问题整理及解决方法
- (表单重复提交)jquery验证 通过时,提交按钮变灰,不通过时正常显示
- 去掉部分重复
- Apache Pig字符串截取实战小例子
- 移动端webapp开发必备知识
- 回头看看也挺好
- 利用java反射机制 读取配置文件 实现动态类加载以及动态类型转换
- 【 程序运行时出现莫名奇妙的异常现象的原因之总结 】
- 关于quick-cocos2d-x新建自定义类绑定失败的处理方法
- 工具记载
- OC面向对象—继承