SELECT ALNG.LM_PRG_ID , ALNG.LANGUAGE_CD , CLNG.XLATLONGNAME , ALNG.LM_PRG_LONG_NM , ALNG.LM_PRG_DESCR , ALNG.LM_PRG_LONG_NM , ALNG.LM_PRG_SHORT_NM , ALNG.LM_PRG_DESCR , ALNG.LM_SRCH_COUNTRY , ALNG.LM_SRCH_STATE , ALNG.LM_SRCH_CITY , ALNG.LM_SRCH_UP_EVENTS FROM PS_LM_PRG_VER_VW A , PS_LM_PRG_VER_LVW ALNG , PSXLATITEM C , PSXLATITEMLANG CLNG WHERE A.LM_PRG_ID = ALNG.LM_PRG_ID AND ALNG.LANGUAGE_CD = CLNG.LANGUAGE_CD AND C.FIELDNAME = CLNG.FIELDNAME AND C.FIELDVALUE = CLNG.FIELDVALUE AND C.EFFDT = CLNG.EFFDT AND %Sql(LM_SRCH_PRG_SQL) UNION SELECT A.LM_PRG_ID , CLNG.LANGUAGE_CD , CLNG.XLATLONGNAME , A.LM_PRG_LONG_NM , A.LM_PRG_DESCR , A.LM_PRG_LONG_NM , A.LM_PRG_SHORT_NM , A.LM_PRG_DESCR , A.LM_SRCH_COUNTRY , A.LM_SRCH_STATE , A.LM_SRCH_CITY , A.LM_SRCH_UP_EVENTS FROM PS_LM_PRG_VER_VW A , PSXLATITEM C , PSXLATITEMLANG CLNG WHERE C.FIELDNAME = CLNG.FIELDNAME AND C.FIELDVALUE = CLNG.FIELDVALUE AND C.EFFDT = CLNG.EFFDT AND %Sql(LM_SRCH_PRG_SQL) AND NOT EXISTS ( SELECT 1 FROM PS_LM_PRG_VER_LVW ALNG WHERE A.LM_PRG_ID = ALNG.LM_PRG_ID AND ALNG.LANGUAGE_CD = CLNG.LANGUAGE_CD) UNION SELECT ALNG.LM_PRG_ID , ALNG.LANGUAGE_CD , C.XLATLONGNAME , ALNG.LM_PRG_LONG_NM , ALNG.LM_PRG_DESCR , ALNG.LM_PRG_LONG_NM , ALNG.LM_PRG_SHORT_NM , ALNG.LM_PRG_DESCR , ALNG.LM_SRCH_COUNTRY , ALNG.LM_SRCH_STATE , ALNG.LM_SRCH_CITY , ALNG.LM_SRCH_UP_EVENTS FROM PS_LM_PRG_VER_VW A , PS_LM_PRG_VER_LVW ALNG , PSXLATITEM C WHERE A.LM_PRG_ID = ALNG.LM_PRG_ID AND %Sql(LM_SRCH_PRG_SQL) AND NOT EXISTS ( SELECT 1 FROM PSXLATITEMLANG CLNG WHERE ALNG.LANGUAGE_CD = CLNG.LANGUAGE_CD AND C.FIELDNAME = CLNG.FIELDNAME AND C.FIELDVALUE = CLNG.FIELDVALUE AND C.EFFDT = CLNG.EFFDT)
|