Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Optimizer not pushing filters down into view
View definitions:
I've trimmed out the very long select list to help readability....
PS_TM_PEFF_V_SHDAY: SELECT /*+ ORDERED USE_HASH(D) PUSH_PRED(D) */ .....
FROM PS_TM_PEFF_V_COEF E, PS_TM_PEFF_V_CCEH D
, PS_TM_PEFF_CONT_DT C
, PS_TM_PEFF_TWTCAL A
, PS_TM_PEFF_TCJR B
AND d.business_unit = f.business_unit AND d.tm_date = f.tm_date AND A.CMS_LABOR_TYPE = 'A' AND A.CMS_LABOR_TYPE = B.TM_LABOR_CLASS AND B.TM_EFFECT_DT = (
AND C.REP_COST_CENTER_CD = A.REP_COST_CENTER_CD AND (C.TM_EFF_START_DATE <= A.TWT_DATE AND (C.TM_EFF_STOP_DATE >= A.TWT_DATE
AND D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.REP_COST_CENTER_CD = A.REP_COST_CENTER_CD AND D.TM_DATE = A.TWT_DATE AND D.DEPTID = A.COST_CENTER_CD AND D.CMS_LABOR_TYPE = A.CMS_LABOR_TYPE AND E.BUSINESS_UNIT = D.BUSINESS_UNIT AND E.TM_SHOP_CODE = C.TM_SHOP_CODE
FROM PS_TM_PEFF_TWTCAL A, PS_TM_PEFF_CONT_DT B
, PS_TM_PEFF_MFCAL D
AND A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.TWT_DATE = D.TM_DATE AND A.REP_COST_CENTER_CD = B.REP_COST_CENTER_CDAND (B.TM_EFF_START_DATE <= A.TWT_DATE
AND A.CMS_LABOR_TYPE NOT IN ('B2','A') AND A.TWT_TYPE = 'DA' AND C.BUSINESS_UNIT = A.BUSINESS_UNIT AND C.TM_LABOR_CLASS = 'B' AND C.TM_EFFECT_DT = (
PS_TM_PEFF_V_CCEH:
SELECT /*+ NO_MERGE */ ......
FROM PS_TM_PEFF_BNCHMRK A RIGHT OUTER JOIN PS_TM_PEFF_GPQCAL B ON
A.BUSINESS_UNIT = B.BUSINESS_UNIT
AND A.REP_COST_CENTER_CD = B.REP_COST_CENTER_CD AND A.SRG_CODE = B.SRG_CODE AND A.PART_NUM = B.PART_NUM AND A.PART_SFX_CD = B.PART_SFX_CD AND A.PROCESS_CODE = B.PROCESS_CODE