---
title: SQL-039: Retrieve C B P Service Type
summary: Retrieves c b p service type data from Oracle.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Provider
reference_type: package
---

# SQL-039: Retrieve C B P Service Type

Retrieves c b p service type data from Oracle.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-039 |
| **Operation type** | Read |
| **Execution method** | Inline |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsCBPServiceType` |
| **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 |
| --- | --- | --- |
| [CBP_SERVICE_TYPE_CODE](../database-tables.md#cbp_service_type_code) | SELECT | See business-object criteria for key columns. |

## Sample SQL

```sql
Select CODE as Code, CODE_DESCR as CodeDescr, EFF_DATE as EffDate, EXP_DATE as ExpDate, UPDATE_USER as UpdateUser, UPDATE_NUM as UpdateNum, UPDATE_DATE as UpdateDate  From CBP_SERVICE_TYPE_CODE  Where CODE = :Code
```

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

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