IBM Maximo Query 帮助使用 MatRecTrans 表

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

我正在尝试构建一个查询,该查询显示库存 (Tr) 中的零件项目 #'s 列表,但仅显示在当前日期之前至少 12 个月收到并且在 12 个月内未发布到资产的那些.但我不知道如何使用 MatRecTrans 表和 TransDate 过滤表过滤掉过去 12 个月内的结果。

这是我到目前为止所拥有的...

status in (
    select value from synonymdomain
    where domainid ='ITEMSTATUS' 
    and maxvalue not in ('OBSOLETE')
    and exists (
        select 1 from invbalances
        where invbalances.itemnum = inventory.itemnum
        and invbalances.location = inventory.location
        and invbalances.siteid = inventory.siteid 
        and invbalances.itemsetid = inventory.itemsetid 
        and invbalances.curbal != 0
    )
    and lastissuedate < current date - 12 month
)

MATRECTRANS.ISSUETYPE 是我只想包含“RECEIPT”问题类型的表列的名称

MATRECTRANS.TRANSDATE 是表列,我只想查看交易日期为当前日期 - 12 个月的项目。

非常感谢任何帮助!

编辑:将查询重组为网站建议的格式。

maximo
© www.soinside.com 2019 - 2024. All rights reserved.