TD_RETWRKFL_VW

(SQL View)
Index Back

Chargeback View

Returns Chargeback View

SELECT DISTINCT A.SETID , B.PPRC_PROMO_CD , C.MERCH_TYPE , A.CUST_ID , A.AMOUNT , A.TD_UNITS FROM PS_TD_RETRET_VW A , PS_TD_RETINCUR_VW B , PS_TD_RETACT_VW C WHERE A.SETID = B.SETID AND A.SETID = C.SETID AND A.PPRC_PROMO_CD = B.PPRC_PROMO_CD AND A.PPRC_PROMO_CD = C.PPRC_PROMO_CD AND A.MERCH_TYPE = B.MERCH_TYPE AND A.MERCH_TYPE = C.MERCH_TYPE AND A.CUST_ID = B.CUST_ID AND A.CUST_ID = C.CUST_ID AND A.AMOUNT > B.AMOUNT - C.AMOUNT

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 PPRC_PROMO_CD Character(20) VARCHAR2(20) NOT NULL Price Promotion Code
3 MERCH_TYPE Character(10) VARCHAR2(10) NOT NULL Merchandising Type
4 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
5 AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Amount
6 TD_UNITS Signed Number(17,4) DECIMAL(15,4) NOT NULL Units