BANK_BAL_VW1

(SQL View)
Index Back

Bank Balance View

This view will be used to display all Balances for a given Bank Account.

SELECT DISTINCT A.BNK_ID_NBR ,A.BANK_ACCOUNT_NUM ,MAX(A.STATEMENT_ID) ,A.ASOFDATE ,B.CURRENCY_CD ,0 ,0 ,0 FROM PS_BANK_STMT_HDR A ,PS_BANK_BALANCES B ,PS_STMT_CODE_TBL C WHERE A.BNK_ID_NBR = B.BNK_ID_NBR AND A.BANK_ACCOUNT_NUM = B.BANK_ACCOUNT_NUM AND A.STATEMENT_ID = B.RECON_CYCLE_NBR AND B.BANK_STMT_CODE = C.BANK_STMT_CODE AND C.PICK_BALANCE = 'Y' GROUP BY A.BNK_ID_NBR ,A.BANK_ACCOUNT_NUM ,A.ASOFDATE ,B.CURRENCY_CD

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BNK_ID_NBR Character(20) VARCHAR2(20) NOT NULL A literal alphanumeric attribute that uniquely identifies a given bank or counterparty.
2 BANK_ACCOUNT_NUM Character(35) VARCHAR2(35) NOT NULL The literal unique identifier associated with a given bank/counterparty account.
3 RECON_CYCLE_NBR Number(10,0) DECIMAL(10) NOT NULL The bank statement ID.
4 ASOFDATE Date(10) DATE As of Date
5 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
6 BALANCE Signed Number(28,3) DECIMAL(26,3) NOT NULL Balance
7 STMT_BAL_OPEN Signed Number(28,3) DECIMAL(26,3) NOT NULL The bank statement opening balance as submitted by the bank.
8 STMT_BAL_CLOSE Signed Number(28,3) DECIMAL(26,3) NOT NULL The bank statement closing balance as submitted by the bank.