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

# SQL-036: Retrieve clsRateTierCollection data

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-036 |
| **Operation type** | Read |
| **Execution method** | Data portal — criteria SQL (dynamic predicate builder) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsRateTierCollection` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:MarketTypeCode` | Input | Not specified | not specified | Bound parameter. |
| `:EffDate` | Input | Not specified | not specified | Bound parameter. |
| `:IhcFlag` | Input | Not specified | not specified | Bound parameter. |
| `:McoFlag` | Input | Not specified | not specified | Bound parameter. |

## Tables

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

## Sample SQL

```sql
Select
  RISK_TYPE_CODE.CODE as Code,
  RISK_TYPE_CODE.DEFAULT_FLAG as DefaultFlag,
  RISK_TYPE_CODE.EFF_DATE as EffDate,
  RISK_TYPE_CODE.EXP_DATE as ExpDate,
  RISK_TYPE_CODE.IHC_FLAG as IhcFlag,
  RISK_TYPE_CODE.MARKET_TYPE_CODE as MarketTypeCode,
  RISK_TYPE_CODE.MCO_FLAG as McoFlag,
  RISK_TYPE_CODE.TIER_RANKING as TierRanking
From
  RISK_TYPE_CODE
Where
  RISK_TYPE_CODE.MARKET_TYPE_CODE = :MarketTypeCode
  AND RISK_TYPE_CODE.EFF_DATE <= :EffDate
  AND (RISK_TYPE_CODE.EXP_DATE IS NULL OR RISK_TYPE_CODE.EXP_DATE > :EffDate)
  AND RISK_TYPE_CODE.IHC_FLAG = :IhcFlag
  AND RISK_TYPE_CODE.MCO_FLAG = :McoFlag
```

> **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\clsRateTierCollection.vb:389-397`