---
title: "SQL-038: Retrieve clsRatingPlanCode data"
summary: Retrieve clsRatingPlanCode data
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Rating
reference_type: package
---

# SQL-038: Retrieve clsRatingPlanCode data

This document records the SQL used by `clsRatingPlanCode` in `SAIF.Business.Policy.Rating`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-038 |
| **Operation type** | Read |
| **Execution method** | Data portal — criteria SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsRatingPlanCode` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | Not specified | not specified | Bound parameter. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [RATING_PLAN_CODE](../database-tables.md#rating_plan_code) | SELECT | See sample SQL and source for column usage. |

## Sample SQL

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

## Operations and processes
- [Select rating plan factors in force](../operations/select-rating-plan-factors-in-force.md)

## Business rules
- [BR-019](../business-rules.md#br-019-a-rating-plan-factor-is-in-force-on-a-date-when-its-effective-date-is-on-or-before-the-date-and-its-expiration-date-is-either-null-or-after-the-date)

> **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.Policy.Rating\clsRatingPlanCode.vb:248-255`