SELECT SEC.OPRID ,TXDEF.SCC_TRANSAC_CD ,TXDEF.SCC_TRNSAC_DESCR ,TXDEF.RECNAME FROM PS_SCC_TRNSAC_DTLS TXDEF , PS_SCC_SL_TRN_SCTY SEC WHERE TXDEF.SCC_STATUS = 'A' AND TXDEF.SCC_NUR_INDICATOR = 'N' AND (TXDEF.SCC_TRANSAC_CD = SEC.SCC_TRANSAC_CD OR SEC.SCC_TRANSAC_CD = 'ALL') AND SEC.ACCESS_CD = 'Y' AND EXISTS ( SELECT 'X' FROM PSRECFIELD RF1 WHERE RF1.RECNAME = TXDEF.RECNAME AND RF1.FIELDNAME = 'SCC_TEMP_ID' ) AND EXISTS ( SELECT 'X' FROM PSRECFIELD RF1 WHERE RF1.RECNAME = TXDEF.RECNAME AND RF1.FIELDNAME = 'SCC_TRANS_STS' ) AND EXISTS ( SELECT 'X' FROM PSRECFIELD RF1 WHERE RF1.RECNAME = TXDEF.RECNAME AND RF1.FIELDNAME = 'SCC_TRANSAC_CD' )
|