SELECT RECNAME , RECDESCR FROM PSRECDEFN A WHERE EXISTS ( SELECT 'X' FROM PSRECFIELD B WHERE B.RECNAME = A.RECNAME AND B.FIELDNAME = 'EP_ITEM_ID' AND (B.FIELDNUM = 1 OR B.FIELDNUM = 2)) AND EXISTS ( SELECT 'X' FROM PSRECFIELD C WHERE C.RECNAME = A.RECNAME AND C.FIELDNAME = 'EP_SUB_ID' AND (C.FIELDNUM = 3 OR C.FIELDNUM = 4)) AND EXISTS ( SELECT 'X' FROM PSRECFIELD D WHERE D.RECNAME = A.RECNAME AND D.FIELDNAME = 'EP_TITLE') AND NOT EXISTS ( SELECT 'X' FROM PSRECFIELD E WHERE E.RECNAME = A.RECNAME AND E.FIELDNAME = 'LANGUAGE_CD' )
|