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
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.
full table scans are only required if no proper index is in place. So create such and you will see that the full table scans disappear