sql - IBM MaximoWhere 子句

标签 sql where-clause maximo

我正在尝试创建一个 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/

相关文章:

Java:用户提供where子句:如何防止SQL注入(inject)?

jython - 使用自动化脚本触发对象的 Maximo MIF 集成

asp.net - 如何?参数和LIKE语句SQL

SQL 用户定义函数 : Fetching TOP n records in a user-defined function

mysql - 将列值与另一条记录的同一列交换

mysql - Where 子句中的假值返回所有行?

sql - 带有第二个数据库的 PostgreSQL FOREIGN KEY

mysql - 根据另一个表的条件插入 sql 语句

java - 在 IBM Maximo 中使用 SQL 语句,使用 Java

javascript - 在 BIRT 中显示修改后的参数值