---
title: "SQL-041: clsCustomerTypeCode retrieve by code"
summary: Retrieves a customer type code record.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-041: clsCustomerTypeCode retrieve by code

Retrieves a customer type code record.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-041 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsCustomerTypeCode` |
| **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 |
| --- | --- | --- |
| [CUSTOMER_TYPE_CODE](../database-tables.md#customer_type_code) | — | — |

## Sample SQL

```sql
Select CUSTOMER_TYPE_CODE.CODE as Code, CUSTOMER_TYPE_CODE.CODE_DESCR as Description
From CUSTOMER_TYPE_CODE
Where CUSTOMER_TYPE_CODE.CODE = :Code
```

## Operations and processes
- [Code table lookups](../operations/code-table-lookups.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\clsCustomerTypeCode.vb`
