SELECT
BankAccount.bankAccountID,
BankAccount.bankBranchID,
BankAccount.name,
BankAccount.typeCode,
BankAccount.bankSortCode,
BankAccount.accountNumber,
BankAccount.statusCode,
BankAccount.iban,
BankAccount.versionNo
INTO
:bankAccountID,
:bankBranchID,
:name,
:typeCode,
:bankSortCode,
:accountNumber,
:statusCode,
:ibanOpt,
:versionNo
FROM
BankAccount,
OrgBankAccountLink
WHERE OrgBankAccountLink.organisationID = :organisationID
AND OrgBankAccountLink.bankAccountID = BankAccount.bankAccountID
ORDER BY bankSortCode
|