SELECT A.OPRID , A.BUSINESS_UNIT , A.PROJECT_ID , B.CONTRACT_NUM , B.LANGUAGE_CD , C.DESCR , B.NAME1 FROM PS_PC_OPRID_PRJACT A , PS_PC_CON_CUST_LVW B , PS_PC_LOC_LNG_VW C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PROJECT_ID = C.PROJECT_ID AND B.LANGUAGE_CD = C.LANGUAGE_CD UNION SELECT A.OPRID , A.BUSINESS_UNIT , A.PROJECT_ID , B.CONTRACT_NUM , C.LANGUAGE_CD , C.DESCR , B.NAME1 FROM PS_PC_OPRID_PRJACT A , PS_PC_CON_CUST_VW B , PS_PC_LOC_LNG_VW C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PROJECT_ID = C.PROJECT_ID AND NOT EXISTS ( SELECT 'X' FROM PS_PC_CON_CUST_LVW D WHERE D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.PROJECT_ID = A.PROJECT_ID AND D.CONTRACT_NUM = B.CONTRACT_NUM AND D.LANGUAGE_CD = C.LANGUAGE_CD) UNION SELECT A.OPRID , A.BUSINESS_UNIT , A.PROJECT_ID , B.CONTRACT_NUM , B.LANGUAGE_CD , C.DESCR , B.NAME1 FROM PS_PC_OPRID_PRJACT A , PS_PC_CON_CUST_LVW B , PS_PC_PROJ_LOC_VW C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PROJECT_ID = C.PROJECT_ID AND NOT EXISTS ( SELECT 'X' FROM PS_PC_LOC_LNG_VW D WHERE D.BUSINESS_UNIT = A.BUSINESS_UNIT AND D.PROJECT_ID = A.PROJECT_ID AND D.LANGUAGE_CD = B.LANGUAGE_CD)
|