zoukankan
html css js c++ java
union all
union all 和isnull
SELECT
dbo.FEE_IN.ID ,
cast
(
0
as
bit
)
as
choice,
'
应收
'
as
class,
dbo.JOB_SE.JOBNO,
dbo.PD_FEEITEM.FEEITEM_CNAME,
dbo.PD_COMPANY.COMP_C_CNAME,
dbo.FEE_IN.CURRENCY,
dbo.FEE_IN.AMOUNT,
dbo.FEE_IN.PRICE,
dbo.FEE_IN.NUMERIC,
dbo.FEE_IN.FLAG_SH,
dbo.FEE_IN.FLAG_KP,
dbo.FEE_IN.INVOICE_NO,
dbo.FEE_IN.JSMODE
FROM
dbo.FEE_IN
LEFT
OUTER
JOIN
dbo.PD_COMPANY
ON
dbo.FEE_IN.COMPANY_ID
=
dbo.PD_COMPANY.ID
LEFT
OUTER
JOIN
dbo.PD_FEEITEM
ON
dbo.FEE_IN.FEEITEM_ID
=
dbo.PD_FEEITEM.ID
LEFT
OUTER
JOIN
dbo.JOB_SE
ON
dbo.FEE_IN.PARENTID
=
dbo.JOB_SE.ID
where
dbo.FEE_IN.FLAG_SH
=
'
1
'
and
isnull
(FLAG_KP,
''
)
=
'
0
'
union
all
SELECT
dbo.FEE_OUT.ID ,
cast
(
0
as
bit
)
as
choice,
'
应付
'
as
class,
dbo.JOB_SE.JOBNO,
dbo.PD_FEEITEM.FEEITEM_CNAME,
dbo.PD_COMPANY.COMP_C_CNAME,
dbo.FEE_OUT.CURRENCY,
dbo.FEE_OUT.AMOUNT,
dbo.FEE_OUT.PRICE,
dbo.FEE_OUT.NUMERIC,
dbo.FEE_OUT.FLAG_SH,
dbo.FEE_OUT.FLAG_KP,
dbo.FEE_OUT.INVOICE_NO,
dbo.FEE_OUT.JSMODE
FROM
dbo.FEE_OUT
LEFT
OUTER
JOIN
dbo.PD_COMPANY
ON
dbo.FEE_OUT.COMPANY_ID
=
dbo.PD_COMPANY.ID
LEFT
OUTER
JOIN
dbo.PD_FEEITEM
ON
dbo.FEE_OUT.FEEITEM_ID
=
dbo.PD_FEEITEM.ID
LEFT
OUTER
JOIN
dbo.JOB_SE
ON
dbo.FEE_OUT.PARENTID
=
dbo.JOB_SE.ID
where
dbo.FEE_out.FLAG_SH
=
'
1
'
and
isnull
(FLAG_KP,
''
)
=
'
0
'
";
查看全文
相关阅读:
Android 中常用代码片段
查看oracle中的中文所占字节数
order by 中 使用decode
Oracle select 中case 的使用以及使用decode替换case
pyqt5 'QWidget' object has no attribute 'setCentralWidget'(转)
程序员之路:python3+PyQt5+pycharm桌面GUI开发(转)
QT5入门之23 -QT串口编程(转)
xpath-helper: 谷歌浏览器安装xpath helper 插件
mysql给root开启远程访问权限
Vmware无法获取快照信息 锁定文件失败
原文地址:https://www.cnblogs.com/simhare/p/846670.html
最新文章
JavaScript 之 截取字符串函数
JavaScript 之 回调函数的返回值给全局变量赋值问题
Asp.Net 之 Web.config 配置文件详解
VS2010中生成遇到的 web.config 问题
IE 之 应用小结
RTSP
PCR理解
C++实现一个限制对象实例个数的类
析构函数声明为私有的作用
Jrtplib
热门文章
编译GNU/Linux共享库, 为什么要用PIC编译?
vlc
Ubuntu apt-get 更换源,以提高下载速度
FFMPEG之TimeBase成员理解
C++内存管理
Window 点击“X”关闭之后无法show
ExtJs Model之convert的使用
Ext.getCmp()的简单使用
解决 setOnItemClickListener,setOnScrollListener与setOnTouchListener事件冲突问题
Spring3.0.5 获取表中自增的主键(mysql)
Copyright © 2011-2022 走看看