07.02.2013 Views

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 10-5 Associate local predicates<br />

After all table join relationships are represented, map each local predicate in<br />

the query to the table that it refers to on the graph. Refer to Figure 10-5.<br />

Step 2 - Associate Local Predicates<br />

SREFER_ITM<br />

SREFER_DOC<br />

“SID" = 31<br />

SPROFIT_CTR<br />

SCURRENCY<br />

SCO_AREA<br />

"SID" = 3<br />

"OBJVERS" = 'A'<br />

"/<strong>BI</strong>C/ZREPTDIV" = '5X'<br />

PDIVISION<br />

"ACCNT_ASGN" IN ('00', '01‘, '04‘, '06' )<br />

“CALMONTH" BETWEEN '200311' AND '200404'<br />

“CURTYPE" = 'B0'<br />

AZ<strong>OS</strong>ASALE00<br />

A0002<br />

What we have done is taken the original complex query and broken it down<br />

into an easily understandable diagram that depicts the table join relationships<br />

and filtering predicates. This diagram can be used in conjunction with the<br />

original SQL <strong>for</strong> further detailed analysis.<br />

3. Determine where the filtering is occurring <strong>for</strong> this SQL statement. Currently, it<br />

is not clear which predicates provide the greatest degree of filtering.<br />

208 <strong>Best</strong> <strong>Practices</strong> <strong>for</strong> <strong>SAP</strong> <strong>BI</strong> <strong>using</strong> <strong>DB2</strong> 9 <strong>for</strong> z/<strong>OS</strong><br />

"OBJVERS" = 'A‘<br />

"S__ZMATLONLY" = 360013<br />

XZMATLPLNT<br />

A0001<br />

"OBJVERS" = 'A'<br />

"S__ZA_SASGRP" = 80<br />

XZRLNSP<br />

<strong>DB2</strong>A0001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!