TR_LIQ_ACGRP_VW

(SQL View)
Index Back

SELECT F.OPRID , SUM(A.POS_IMPCT_ORIG) , A.VALUE_DT , A.WRKSHEET_LINE_ITEM , D.BNK_ACCTGRP_ID , D.SETID , A.POSITION_CURRENCY FROM PS_CSH_FCST_SUM A , PS_BNK_ACCTGRP_HDR D , PS_BNK_ACCTGRP_DTL E , PS_TR_CASH_POS_CFG F WHERE A.SETID = E.SETID AND A.WORKSHEET_ID = F.WORKSHEET_ID AND A.SOURCE_SET = F.SOURCE_SET AND A.GROUP_BY_FIELD = 'BAC' AND A.POSITION_CURRENCY = F.POSITION_CURRENCY AND A.SETID = F.SETID AND A.SETID = D.SETID AND A.LINE_ITEM_TYPE='1' AND A.POS_HIST_FLAG ='N' AND D.CSH_FCST = 'Y' AND A.CALC_DT IN ( SELECT MAX(B.CALC_DT) FROM PS_CSH_FCST_SUM B WHERE B.SETID = A.SETID AND B.WORKSHEET_ID = A.WORKSHEET_ID AND B.SOURCE_SET = A.SOURCE_SET AND B.GROUP_BY_FIELD = A.GROUP_BY_FIELD AND B.VALUE_DT = A.VALUE_DT AND B.WRKSHEET_LINE_ITEM = A.WRKSHEET_LINE_ITEM AND B.POSITION_CURRENCY = A.POSITION_CURRENCY AND B.GROUP_BY_FIELD = 'BAC' AND B.LINE_ITEM_TYPE='1' AND B.POS_HIST_FLAG ='N' ) AND A.BANK_SETID = E.SETID AND A.BANK_CD = E.BANK_CD AND A.BANK_ACCT_KEY = E.BANK_ACCT_KEY AND D.BNK_ACCTGRP_ID = E.BNK_ACCTGRP_ID AND D.SETID = E.SETID GROUP BY F.OPRID, A.VALUE_DT, A.WRKSHEET_LINE_ITEM, D.BNK_ACCTGRP_ID, D.SETID, A.POSITION_CURRENCY

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 POS_IMPCT_ORIG Signed Number(28,3) DECIMAL(26,3) NOT NULL Represents the calculated monetary value for a specific position tree node; the result
3 VALUE_DT Date(10) DATE Equivalent to a deal transaction's settlement date.
4 WRKSHEET_LINE_ITEM Character(30) VARCHAR2(30) NOT NULL Cash Forecast Worksheet Line item
5 BNK_ACCTGRP_ID Character(10) VARCHAR2(10) NOT NULL Account Group ID
6 SETID Character(5) VARCHAR2(5) NOT NULL SetID
7 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code