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.

The second predicate joins "/<strong>BI</strong>C/AZ<strong>OS</strong>ASALE00" with "A0001". This<br />

relationship is added to the first join relationship. The third is then added, and<br />

the join graph continues to grow until all join relationships are added. See<br />

Figure 10-4.<br />

Step 1 - Final Join Graph<br />

SREFER_ITM<br />

SREFER_DOC<br />

2 Join predicates<br />

SPROFIT_CTR<br />

Figure 10-4 Final join graph<br />

SCURRENCY<br />

SCO_AREA<br />

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

A0002<br />

After all join<br />

predicates are built<br />

PDIVISION XZMATLPLNT<br />

A0001<br />

2 Join predicates<br />

XZRLNSP<br />

<strong>DB2</strong>A0001<br />

2. Map each local predicate in the query to the table that it refers to on the join<br />

graph.<br />

Chapter 10. Tips <strong>for</strong> SQL efficiency 207

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

Saved successfully!

Ooh no, something went wrong!