|
您好,我在流程表单中有下列财务报销数据,比如住宿费,交通费等,这些表单数据在QRY_ITEM中可以查到。

需求:打算以项目单位统计每个项目的费用支出总和。
实现:写了下面的sql语句:
select xstringShortValue from QRY_ITEM
where xbundle in
(select q.xbundle from PP_C_WORKCOMPLETED o,QRY_ITEM q
where o.xjob = q.xbundle
and q.xpath0 = 'textfield_31'
and q.xstringShortValue = :pjno )
and xpath1 = 'total'
and xitemType = 'p'
and xpath2 not like 'datagrid_1%'
像这种sql句可以在数据中心的查询配置中使用吗?
或者有其他更好的方法吗? |
|