
164 OnDemand SQL Performance Analysis Simplified on DB2 for i5/OS in V5R4
right-click the statement in any of the reports in which it appears and select Work with SQL
Statements to bring it up in an SQL Scripts window.
In the SQL Scripts window that appears, already populated with the query, we will first create
our second index, on ORDERS, as shown in Figure 5-62. We also have to replace the
parameter marker in the local selection, represented by the question mark, with a real value.
Figure 5-62 SQL Script to create an index and test the query
Tip: If we do not know a real value to replace the parameter marker with, several of the
Statement repor ...