EX_MERCHANT_L_V

(SQL View)
Index Back

Preferred Merchant Table View

View of preferred suppliers or merchants that are most utilized by a company. Retrieves particular merchants depending on the type of expense type selected.

SELECT A.SETID , A.EXPENSE_TYPE , A.MERCHANT_CD , B2.LANGUAGE_CD , B2.DESCR , B2.DESCRSHORT FROM PS_EX_TYPE_MERCHNT A , PS_EX_MERCHANT_TBL B , PS_EX_MERCHANT_LNG B2 WHERE A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_EX_TYPE_MERCHNT A1 WHERE A1.SETID = A.SETID AND A1.EXPENSE_TYPE = A.EXPENSE_TYPE AND A1.EFFDT <= %CurrentDateIn) AND B.SETID = A.SETID AND B.MERCHANT_CD = A.MERCHANT_CD AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_EX_MERCHANT_TBL B1 WHERE B1.SETID = B.SETID AND B1.MERCHANT_CD = B.MERCHANT_CD AND B1.EFFDT <= %CurrentDateIn) AND B.EFF_STATUS = 'A' AND B2.SETID = B.SETID AND B2.MERCHANT_CD = B.MERCHANT_CD AND B2.EFFDT = B.EFFDT

  • Related Language Record for EX_MERCHANT_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

    Default Value: OPR_DEF_TBL_FS.SETID

    Prompt Table: SP_SETID_NONVW

    2 EXPENSE_TYPE Character(7) VARCHAR2(7) NOT NULL Expense Type
    3 MERCHANT_CD Character(10) VARCHAR2(10) NOT NULL Preferred Merchant
    4 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    6 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description