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

# SQL-037: Retrieve clsRateTierFactor data

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

## Classification

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

## Parameters

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

## Tables

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

## Sample SQL

```sql
Select
  RISK_TYPE_DESCRIPTION.RISK_TYPE_CODE as RiskTypeCode,
  RISK_TYPE_DESCRIPTION.CODE_DESCR as CodeDescr,
  RISK_TYPE_DESCRIPTION.DESCR_EFF_DATE as DescrEffDate,
  RISK_TYPE_DESCRIPTION.DESCR_EXP_DATE as DescrExpDate,
  RISK_TYPE_DESCRIPTION.RISK_TYPE_FACTOR as RiskTypeFactor,
  RISK_TYPE_DESCRIPTION.FEDERAL_RISK_TYPE_FACTOR as FederalRiskTypeFactor
From
  RISK_TYPE_DESCRIPTION
Where
  RISK_TYPE_DESCRIPTION.RISK_TYPE_CODE = :RiskTypeCode
  AND RISK_TYPE_DESCRIPTION.DESCR_EFF_DATE = :DescrEffDate
```

## Operations and processes
- [Select the applicable rate tier factor](../operations/select-the-applicable-rate-tier-factor.md)

## Business rules
- [BR-018](../business-rules.md#br-018-a-rate-tier-factor-applies-to-a-risk-type-code-on-a-date-when-the-code-matches-exactly-the-effective-date-is-on-or-before-the-date-and-the-expiration-date-is-either-null-dateminvalue-or-after-the-date)
- [BR-026](../business-rules.md#br-026-a-rate-tier-factor-requires-a-non-empty-risk-type-code)

> **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\clsRateTierFactor.vb:368-376`