sql query/data model to get invoice payment information and bank accounts details.
Summary:
I have an sql query to get Invoice payment information with bank account details. My issue is that some of the bank account details are not appearing for certain invoices. Not sure Why. ?I have attached my script and would appreciate is someone could help. Script attached.
DATA below is missing for some payments but bank account exists.
,ba.bank_number || '-' || ba.branch_number || '-' || ba.bank_account_number || '-' ||
ba.account_suffix as BANK_ACC_NUMS
,ba.Bank_Name
,ba.BRANCH_NUMBER BRANCH_NUM
,ba.Bank_Account_Number BANK_ACC_NUM
Content (please ensure you mask any confidential information):