AR_CU2_TR3_VW

(SQL View)
Index Back

Customer Trend View


SELECT C.SETID , C.BUSINESS_UNIT , C.CUST_ID , A.CUST_HIST_ID , C.FISCAL_YEAR , C.ACCOUNTING_PERIOD , A.HIST_AMT , A.HIST_COUNT , A.HIST_WEIGHT , A.HIST_DT , A.CURRENCY_CD FROM PS_AR_CAL_TREND_VW C , PS_AR_C2_T3_VW A WHERE C.SETID = A.SETID (+) AND C.CUST_ID = A.CUST_ID (+) AND C.BUSINESS_UNIT = A.BUSINESS_UNIT (+) AND C.FISCAL_YEAR = A.FISCAL_YEAR (+) AND C.ACCOUNTING_PERIOD = A.ACCOUNTING_PERIOD (+)

# 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 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.
4 CUST_HIST_ID Character(10) VARCHAR2(10) NOT NULL History ID
5 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
6 ACCOUNTING_PERIOD Number(3,0) SMALLINT NOT NULL Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table.
7 HIST_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL History Amt
8 HIST_COUNT Signed Number(6,0) DECIMAL(5) NOT NULL History Count
9 HIST_WEIGHT Signed Number(28,3) DECIMAL(26,3) NOT NULL Weighting Amt

Default Value: 1

10 HIST_DT Date(10) DATE History Date
11 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code