IBM Maximo Where子句

问题描述 投票:0回答:1

我正在尝试创建where子句,以返回没有记录任何ACTUALS的设置日期(没有labtrans)之间的所有工单。我有一个现有的WC,我正在使用它作为此模板,但是我被“ where”元素所困。

(woclass = 'WORKORDER' or woclass = 'ACTIVITY') and
istask = 0 and
worktype = 'PPM' and *This could be removed*
targcompdate >= { ts '2020-05-01 00:00:00.000' } and
targcompdate >= { ts '2020-05-05 00:00:00.000' } and
not exists?? there are no actuals are on the work order?

非常感谢,

G

sql where-clause maximo
1个回答
0
投票

简单的方法是,相信Maximo的其余部分已经完成工作,就像下面这样。 (我要从内存中删除。您可以在数据库配置或数据库浏览器工具(如SQL Developer)中的WORKORDER对象/表上仔细检查列名。)

(woclass = 'WORKORDER' or woclass = 'ACTIVITY') and
istask = 0 and
worktype = 'PPM' and *This could be removed*
targcompdate >= { ts '2020-05-01 00:00:00.000' } and
targcompdate >= { ts '2020-05-05 00:00:00.000' } and
actlabcost = 0 and
actmatcost = 0 and
actservcost = 0 and
acttoolcost = 0
© www.soinside.com 2019 - 2024. All rights reserved.