综合查询

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
select guid,
djbh,
nd,
pxmc,
pxlb,
sqks,
sqry,
sqrq,
pxdx,
pxkssj,
pxjssj,
pxrs,
pxsxje,
pxdd,
pxnr,
bz,
jfly,
sjbxje,
bxzt,
jfjy,
procinstid,
shzt,
act_status,
jdr,
saas,
sh,
sqryxm,
sqksmc,
jflxmc
from (select guid,
djbh,
nd,
pxmc,
pxlb,
(select ‘(’ || d.dwbh || ‘)’ || d.mc
from dwb d
where sqks = d.guid) sqksmc,
sqks,
(select ‘(’ || d.rybh || ‘)’ || d.xm
from ryb d
where sqry = d.guid) sqryxm,
sqry,
to_char(t.sqrq, ‘yyyy-MM-dd’) sqrq,
pxdx,
to_char(t.pxkssj, ‘yyyy-MM-dd’) pxkssj,
to_char(t.pxjssj, ‘yyyy-MM-dd’) pxjssj,
pxrs,
trim(to_char(nvl(t.pxsxje, ‘0.00’), ‘9999999999999990.00’)) pxsxje,
pxdd,
pxnr,
bz,
jfly,
(select mc
from AC_SYS_DMB C
where C.dm = t.JFLY
and c.zl = ‘jflx’) jflxmc,
trim(to_char(nvl(t.sjbxje, ‘0.00’), ‘9999999999999990.00’)) sjbxje,
bxzt,
trim(to_char(nvl(t.jfjy, ‘0.00’), ‘9999999999999990.00’)) jfjy,
procinstid,
decode(t.shzt,
‘0’,
‘未提交’,
‘1’,
‘待审核’,
‘8’,
‘审核通过’,
‘2’,
‘审核退回’) as shzt,
shzt as sh,
act_status,
jdr,
saas
from nk_pxsqb t
where t.saas = ‘000001’
and jdr = ‘F9A3D2CDB5E6432B865579667341555B’) K
where 1 = 1
and pxmc not in (‘123’)

/* and (nvl(pxmc,0) not in (‘123’))*/
order by DJBH desc

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值