---
title: SQL-049: Retrieve Provider Identity Code
summary: Retrieves provider identity code data from Oracle.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Provider
reference_type: package
---

# SQL-049: Retrieve Provider Identity Code

Retrieves provider identity code data from Oracle.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :Code | Input | String | 5 | Value from `MyCriteria.Code` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PROVIDER_IDENTITY_CODE](../database-tables.md#provider_identity_code) | SELECT | See business-object criteria for key columns. |

## Sample SQL

```sql
Select PROVIDER_IDENTITY_CODE.CODE as Code, PROVIDER_IDENTITY_CODE.CODE_DESCR as CodeDescr, PROVIDER_IDENTITY_CODE.UPDATE_USER as UpdateUser, PROVIDER_IDENTITY_CODE.UPDATE_NUM as UpdateNum, PROVIDER_IDENTITY_CODE.UPDATE_DATE as UpdateDate From PROVIDER_IDENTITY_CODE Where PROVIDER_IDENTITY_CODE.CODE = :Code
```

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Provider\clsProviderIdentityCode.vb`
