EX_MRCH_VW

(SQL View)
Index Back

Preferred vs Non-pref.Merchant

Preferred vs Non-pref.Merchant spending

SELECT A.SETID , A.BUSINESS_UNIT , A.TRANS_DT , A.EXPENSE_TYPE , A.DESCR , A.MERCHANT_CD , CASE WHEN B.DESCR IS NULL THEN 'Non-Preferred Merchant' ELSE B.DESCR END , A.MERCHANT , A.MONETARY_AMOUNT , A.CURRENCY_CD FROM PS_EX_MRCH_VW2 A LEFT JOIN PS_EX_MRCH_VW3 B ON (A.MERCHANT_CD= B.MERCHANT_CD AND A.SETID = B.SETID )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 TRANS_DT Date(10) DATE Transaction Date
4 EXPENSE_TYPE Character(7) VARCHAR2(7) NOT NULL Expense Type

Prompt Table: EX_TYPES_TBL

5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
6 MERCHANT_CD Character(10) VARCHAR2(10) NOT NULL Preferred Merchant

Prompt Table: EX_MERCHANT_VW1

7 DESCR1 Character(30) VARCHAR2(30) NOT NULL Descr
8 MERCHANT Character(40) VARCHAR2(40) NOT NULL Merchant
9 MONETARY_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account.
10 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code

Default Value: BUS_UNIT_TBL_EX.BASE_CURRENCY

Prompt Table: CURRENCY_CD_TBL