【问题标题】:Separating completed work from incomplete work in BIRT and Maximo在 BIRT 和 Maximo 中将已完成的工作与未完成的工作分开
【发布时间】:2020-01-30 02:41:48
【问题描述】:

所以我开始使用如下语句:

select count(wonum)as workorder,gsasaddresscode,status from maximo.workorder where  istask=0 and
month(reportdate)=12 and year(reportdate)=2019 and worktype != 'PM' and status != 'CAN'
group by status,gsasaddresscode

问题是我们有 14 种状态(stati?),基本上最终是完整或不完整的,这就是我想要展示的。

Building  |Incomplete Work Orders | Complete Work Orders
AB002341  |       200             |        634

【问题讨论】:

    标签: birt maximo


    【解决方案1】:

    这是甲骨文:

     select sum(Complete), sum(Open) ,location from (
      select wo.status, wo.location,
     case when wo.status in (select SD.VALUE from synonymdomain sd where sd.domainid = 'WOSTATUS' and value ='CLOSE' or value = 'CAN'or value = 'COMP') then 1 else 0 end Complete,
     case when wo.status in (select SD.VALUE from synonymdomain sd where sd.domainid = 'WOSTATUS' and value ='APPR' or value = 'INPRG'or value = 'WAPPR') then 1 else 0 end Open
     from maximo.workorder wo  where  istask=0 and
     TO_CHAR (reportdate,'MM')= '12' and  TO_CHAR (reportdate,'YYYY') ='2019' and worktype != 'PM')
     group by location
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多