
186 OnDemand SQL Performance Analysis Simplified on DB2 for i5/OS in V5R4
SELECT qqtime AS "Time", qqtim1 AS "Last Access Plan Rebuilt", qqc11 AS
"Optimization req.",
qqrcod AS "AP Rebuild Reason", HEX(qqc21) AS "Rebuild Subcode", HEX(qvc22) AS
"Original Rebuild Reason", HEX(qvc23) AS "Original Rebuild Subcode",
varchar(qqsttx,20000) AS "Statement Text"
FROM xx a LEFT JOIN yy b ON a.qqjfld = b.qqjfld AND a.qqucnt = b.qqucnt WHERE
(a.qqtime BETWEEN b.qqstim AND b.qqetim OR b.qqstim IS NULL) ORDER BY "Time";
Figure 6-7 show the result of the query in Example 6-6. The information from the 3006 record
is joined with information from the 1000 record, ...