【发布时间】: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
【问题讨论】: