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

# SQL-033: Retrieve clsRateFileMaster data

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

## Classification

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

## Parameters

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

## Tables

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

## Sample SQL

```sql
Select
  RATE_FILE_MASTER.RATE_FILE_SEQ_NUM as RateFileSeqNum,
  RATE_FILE_MASTER.RATE_FILE_EFF_DATE as RateFileEffDate,
  RATE_FILE_MASTER.RATE_FILE_EXP_DATE as RateFileExpDate,
  RATE_FILE_MASTER.NEW_OUTSTANDING_CODE as NewOutstandingCode,
  RATE_FILE_MASTER.RISK_TYPE_CODE as RiskTypeCode,
  RATE_FILE_MASTER.NR_RATE_FILE_SEQ_NUM as NRRateFileSeqNum,
  RATE_FILE_MASTER.PENDING_FLAG as PendingFlag
From
  RATE_FILE_MASTER
Where
  RATE_FILE_MASTER.RATE_FILE_EFF_DATE = :RateFileEffDate
  AND RATE_FILE_MASTER.NEW_OUTSTANDING_CODE = :NewOutstandingCode
  AND RATE_FILE_MASTER.RISK_TYPE_CODE = :RiskTypeCode
  AND RATE_FILE_MASTER.NR_RATE_FILE_SEQ_NUM = :NRRateFileSeqNum
```

> **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\clsRateFileMaster.vb:654-677`