SELECT
BankAccount.name,
BankAccount.typeCode,
BankAccount.bankSortCode,
BankAccount.bankBranchID,
BankAccount.accountNumber,
BankAccount.iban,
BankAccount.statusCode,
ConcernRoleBankAccount.concernRoleBankAccountID,
BankAccount.bankAccountID,
BankAccount.versionNo
INTO
:name,
:typeCode,
:bankSortCode,
:bankBranchID,
:accountNumber,
:ibanOpt,
:statusCode,
:concernRoleBankAccountID,
:bankAccountID,
:versionNo
FROM
BankAccount,
ConcernRoleBankAccount
WHERE concernRoleID = :concernRoleID
AND BankAccount.bankAccountID = ConcernRoleBankAccount.bankAccountID
|