我正在尝试创建一个 where 子句来返回设定日期之间没有记录实际值(没有 labtrans)的所有工作订单。我有一个现有的 WC,我将其用作该 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
最佳答案
最简单的方法是相信 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
关于sql - IBM MaximoWhere 子句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61622408/