BANK_BALANCE_VW(SQL View) |
Index Back |
---|---|
Bank Balance ViewThis 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 ,C.BANK_STMT_CODE ,C.DESCR20A ,B.CURRENCY_CD ,B.BALANCE 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,C.BANK_STMT_CODE,C.DESCR20A,B.BALANCE |
# | 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 | BANK_STMT_CODE | Character(8) | VARCHAR2(8) NOT NULL | Bank Statement code - used to identify the codes used on the bank statement for different entires of balances and transactions. |
6 | DESCR20A | Character(20) | VARCHAR2(20) NOT NULL | Short Description |
7 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
8 | BALANCE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Balance |