SELECT B.FIELDNAME , D.LANGUAGE_CD , D.LONGNAME FROM PSRECFIELD A , PSRECFIELD B , PSDBFLDLABL C , PSDBFLDLABLLANG D WHERE A.RECNAME = 'CMP_RULE_VALUES' AND A.FIELDNAME <> 'CMP_RULE_ID' AND A.FIELDNAME <> 'EFFDT' AND A.FIELDNAME <> 'CMP_RULE_OPER_SEQ' AND A.FIELDNAME <> 'CMP_VALUE_SEQ' AND A.FIELDNAME <> 'CMP_FLD_VALUE' AND A.FIELDNAME <> 'CMP_FLD_VALUE_DT' AND A.FIELDNAME <> 'CMP_FLD_VALUE_DTTM' AND A.FIELDNAME <> 'CMP_FLD_VALUE_TM' AND B.FIELDNAME = C.FIELDNAME AND D.FIELDNAME = B.FIELDNAME AND C.LABEL_ID = D.LABEL_ID AND C.DEFAULT_LABEL = 1 AND ((B.RECNAME = A.FIELDNAME AND A.SUBRECORD = 'Y') OR (A.RECNAME = B.RECNAME AND A.SUBRECORD = 'N' AND A.FIELDNAME = B.FIELDNAME))
|