Select workorders (via parameters) and their children

前端 未结 2 1164
旧巷少年郎
旧巷少年郎 2021-01-26 03:54

I have a Oracle 12c query that will eventually be used in a BIRT report (in IBM\'s Maximo Asset Management platform).


The query/report will retrieve records as fol

2条回答
  •  礼貌的吻别
    2021-01-26 04:24

    There are many indexes that you can use on the WORKORDER table. What stands out in your query is that you're not referring to the SITEID column which should almost always come with the WONUM as together they compose the "primary key", which in Oracle Maximo is a unique index.

    You can confirm this by running this query:

       select attributename from maxattribute where objectname='WORKORDER' AND PRIMARYKEYCOLSEQ IS NOT NULL;
    

    Also, a good practice is to identify which indexes you will need to query the needed data. You can have a look at the table's indexes with your favorite SQL tool or from the Database Configuration Maximo application.

提交回复
热议问题