SSR_ITEMREC_VWL

(SQL View)
Index Back

View of Records from PSRECDEFN


SELECT a.RECNAME , x1.LANGUAGE_CD , x1.RECDESCR FROM PSRECFIELD a , PSRECDEFN x , PSRECDEFNLANG x1 WHERE a.RECNAME = x.RECNAME AND (x.RECTYPE = 0 OR x.RECTYPE = 1) AND x.RECNAME = x1.RECNAME AND a.RECNAME IN ( SELECT a1.RECNAME FROM PSRECFLDKEYSVW a1 GROUP BY a1.RECNAME HAVING COUNT(*) = 1 ) UNION SELECT a.RECNAME , x1.LANGUAGE_CD , x1.RECDESCR FROM PSRECFIELD a , PSRECDEFN x , PSRECDEFNLANG x1 WHERE a.FIELDNAME = 'EFFDT' AND a.FIELDNUM = 2 AND %DecMult(%Round(%DecDiv(a.USEEDIT,2),0 ) , 2) <> a.USEEDIT AND a.RECNAME = x.RECNAME AND (x.RECTYPE = 0 OR x.RECTYPE = 1) AND x.RECNAME = x1.RECNAME AND a.RECNAME IN ( SELECT a1.RECNAME FROM PSRECFLDKEYSVW a1 GROUP BY a1.RECNAME HAVING COUNT(*) = 2) UNION SELECT a.RECNAME , x1.LANGUAGE_CD , x1.RECDESCR FROM PSRECFIELD a , PSRECDEFN x , PSRECDEFNLANG x1 WHERE (a.FIELDNAME = 'INSTITUTION' OR a.FIELDNAME = 'SETID') AND a.FIELDNUM = 1 AND %DecMult(%Round(%DecDiv(a.USEEDIT,2),0 ) , 2) <> a.USEEDIT AND a.RECNAME = x.RECNAME AND (x.RECTYPE = 0 OR x.RECTYPE = 1) AND x.RECNAME = x1.RECNAME AND a.RECNAME IN ( SELECT a1.RECNAME FROM PSRECFLDKEYSVW a1 GROUP BY a1.RECNAME HAVING COUNT(*) = 2) UNION SELECT a.RECNAME , x1.LANGUAGE_CD , x1.RECDESCR FROM PSRECFIELD a , PSRECFIELD c , PSRECDEFN x , PSRECDEFNLANG x1 WHERE a.RECNAME = c.RECNAME AND (a.FIELDNAME = 'INSTITUTION' OR a.FIELDNAME = 'SETID') AND c.FIELDNAME = 'EFFDT' AND a.FIELDNUM = 1 AND c.FIELDNUM = 3 AND %DecMult(%Round(%DecDiv(a.USEEDIT,2),0 ) , 2) <> a.USEEDIT AND %DecMult(%Round(%DecDiv(c.USEEDIT,2),0 ) , 2) <> c.USEEDIT AND a.RECNAME = x.RECNAME AND (x.RECTYPE = 0 OR x.RECTYPE = 1) AND x.RECNAME = x1.RECNAME AND a.RECNAME IN ( SELECT a1.RECNAME FROM PSRECFLDKEYSVW a1 GROUP BY a1.RECNAME HAVING COUNT(*) = 3 )

  • Related Language Record for SSR_ITEM_REC_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 RECNAME Character(15) VARCHAR2(15) NOT NULL Record (Table) Name (see PSRECDEFN).
    2 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    3 DESCR Character(30) VARCHAR2(30) NOT NULL Description