---
title: "SQL-030: clsBankAccount retrieve by ID"
summary: Retrieves a single bank account record from BANK_ACCOUNT by sequence number.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-030: clsBankAccount retrieve by ID

Retrieves a single bank account record from BANK_ACCOUNT by sequence number.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-030 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsBankAccount` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| \:BankAccountID\ | Input | Decimal | — | Binds \MyCriteria.BankAccountID\* |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [BANK_ACCOUNT](../database-tables.md#bank_account) | — | — |

## Sample SQL

```sql
Select BANK_ACCOUNT.BANK_ACCOUNT_DATA_SOURCE_CODE as BankAccountDataSourceCode,
  BANK_ACCOUNT.BANK_ACCOUNT_HOLDER_NAME as BankAccountHolderName,
  BANK_ACCOUNT.BANK_ACCOUNT_NICK_NAME as BankAccountNickName,
  BANK_ACCOUNT.BANK_ACCOUNT_NUM as BankAccountNum,
  BANK_ACCOUNT.BANK_ACCOUNT_OWNER_NAME as BankAccountOwnerName,
  BANK_ACCOUNT.BANK_ACCOUNT_SEQ_NUM as BankAccountID,
  BANK_ACCOUNT.BANK_ACCOUNT_STATUS_CODE as BankAccountStatusCode,
  BANK_ACCOUNT.BANK_ACCOUNT_TYPE_CODE as BankAccountTypeCode,
  BANK_ACCOUNT.BANK_NAME as BankName, BANK_ACCOUNT.BANK_ROUTING_NUM as BankRoutingNum,
  BANK_ACCOUNT.BUSINESS_CONSUMER_CODE as BusinessConsumerCode,
  BANK_ACCOUNT.CREATE_DATE as CreateDate, BANK_ACCOUNT.CREATE_IP_ADDR as CreateIPAddr,
  BANK_ACCOUNT.CREATE_USER as CreateUser,
  BANK_ACCOUNT.HISTORICAL_AUTHORIZATION_FLAG as HistoricalAuthorizationFlag,
  BANK_ACCOUNT.PAYMENT_RETURN_REASON_CODE as PaymentReturnReasonCode,
  BANK_ACCOUNT.UPDATE_DATE as UpdateDate, BANK_ACCOUNT.UPDATE_IP_ADDR as UpdateIPAddr,
  BANK_ACCOUNT.UPDATE_USER as UpdateUser
From BANK_ACCOUNT
Where BANK_ACCOUNT.BANK_ACCOUNT_SEQ_NUM = :BankAccountID
```

## Operations and processes
- [Bank account management](../operations/bank-account-management.md)*

> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Payment.EFT\clsBankAccount.vb`
