---
title: "SQL-029: clsBalanceTypeCode retrieve by code"
summary: Retrieves a balance type code record from BALANCE_TYPE_CODE including the dynamic SQL text column.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-029: clsBalanceTypeCode retrieve by code

Retrieves a balance type code record from BALANCE_TYPE_CODE including the dynamic SQL text column.

## Classification

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


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| \:CODE\ | Input | String | 5 | Binds \MyCriteria.Code\* |

## Tables

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

## Sample SQL

```sql
Select BALANCE_TYPE_CODE.CODE as Code, BALANCE_TYPE_CODE.CODE_DESCR as CodeDescr,
  BALANCE_TYPE_CODE.GET_BALANCE_SQL_TXT as GetBalanceSqlTxt,
  BALANCE_TYPE_CODE.MISC_RECEIPT_BATCH_ID as MiscReceiptBatchId,
  BALANCE_TYPE_CODE.MISC_RECEIPT_CODE as MiscReceiptCode
From BALANCE_TYPE_CODE
Where BALANCE_TYPE_CODE.CODE = :Code
```

## Operations and processes
- [Dynamic balance calculation](../operations/dynamic-balance-calculation.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\clsBalanceTypeCode.vb`
