18.12.2013 Views

DB2 for z/OS V8 - Guide Share France

DB2 for z/OS V8 - Guide Share France

DB2 for z/OS V8 - Guide Share France

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

A daily REFRESH TABLE process was scheduled<br />

Query rewrite:<br />

SELECT representativeId,<br />

locationId,<br />

productId<br />

FROM mqt.test3<br />

WHERE<br />

REP_STATUSID=1 AND<br />

REP_MT_CURR_DIRECTION IN (2,3) AND<br />

REP_LOC_COUNTRYID=32 AND<br />

REP_PROD_PRODUCTID=2 AND<br />

CITY LIKE 'CONCEI%O DO ARAGUAIA%' AND<br />

GEN_SERVICE_productid IN (102)<br />

GROUP BY representativeId,<br />

LOCATIONID,<br />

PRODUCTID<br />

HAVING count(*)=1 ORDER BY 1,2,3<br />

© 2007 MConsulting - cristian@molaro.be 56

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

Saved successfully!

Ooh no, something went wrong!