有关sql语句急!!!
时间:2011-12-01
来源:互联网
select a.nrfl, letterProcessed, letterProcessing from (select nrfl, count(docid) as letterProcessed from wsxf_document where status != 4and create_Date >='2011-11-11 00:00:00' and create_date <= '2011-12-01 23:59:59'group by nrfl) a full outer join (select nrfl, count(docid) as letterProcessing from wsxf_document where status = 4 and create_Date >='2011-11-11 00:00:00' and create_date <= '2011-12-01 23:59:59' group by nrfl) b on a.nrfl = b.nrfl
请教高手,怎样把属于左右表中nrfl字段的的所有的内容在同一个字段中显示出来
请教高手,怎样把属于左右表中nrfl字段的的所有的内容在同一个字段中显示出来
作者: longyuzhiyi 发布时间: 2011-12-01
SQL code
-- 如果nrfl字段是字符类型: select a.nrfl||' '||b.nrfl as ab_nrf1 .... from ... -- 如果nrfl字段是整数类型: select to_char(a.nrfl,'999999999999999')||' '||to_char(b.nrfl,'999999999999999') as ab_nrf1 .... from ... -- 如果nrfl字段是浮点数类型: select to_char(a.nrfl,'9999999999999990D999')||' '||to_char(b.nrfl,'9999999999999990D999') as ab_nrf1 .... from ...
作者: luoyoumou 发布时间: 2011-12-01
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28