RE_PRTA_SRCH_LG

(SQL View)
Index Back

SELECT A.SETID ,A.PRORATA_BASIS ,A.LANGUAGE_CD ,A.INSTANCE_NAME FROM PS_RE_PRTA_BAS_LG A WHERE A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_RE_PRTA_BAS_LG B WHERE A.SETID = B.SETID AND A.PRORATA_BASIS = B.PRORATA_BASIS AND B.EFFDT <= %CurrentDateIn ) OR (A.EFFDT = ( SELECT MIN(C.EFFDT) FROM PS_RE_PRTA_BAS_LG C WHERE C.SETID = A.SETID AND C.PRORATA_BASIS = A.PRORATA_BASIS AND C.EFFDT > %CurrentDateIn) AND NOT EXISTS ( SELECT 1 FROM PS_RE_PRTA_BAS_LG D WHERE D.SETID = A.SETID AND D.PRORATA_BASIS = A.PRORATA_BASIS AND D.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_RE_PRTA_BAS_LG E WHERE D.SETID = E.SETID AND D.PRORATA_BASIS = E.PRORATA_BASIS AND E.EFFDT <= %CurrentDateIn )))

  • Related Language Record for RE_PRTA_SRCH
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
    2 PRORATA_BASIS Character(10) VARCHAR2(10) NOT NULL Prorata Basis
    3 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    4 INSTANCE_NAME Character(60) VARCHAR2(60) NOT NULL Instance Name