﻿---
title: "SQL-076: Retrieve ratingrulemaster"
summary: Retrieve ratingrulemaster
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Premium
reference_type: package
---

# SQL-076: Retrieve ratingrulemaster

Retrieve ratingrulemaster in the context of `clsRatingRuleMaster`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-076 |
| **Operation type** | Read |
| **Execution method** | Reader/Scalar |
| **Database** | Oracle |
| **Command type** | Text |
| **Schema** | [unqualified] |
| **Business object** | `clsRatingRuleMaster` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | BeforeRetrieve / AfterRetrieve |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:EffectiveDate` | Input | Date | *inferred/unknown* | Bind variable in clsRatingRuleMaster.RetrieveSQL. |
| `:FinancialSystemCode` | Input | String* | *inferred/unknown* | Bind variable in clsRatingRuleMaster.RetrieveSQL. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PREM_RATING_RULE_MASTER](../database-tables.md#prem_rating_rule_master) | SELECT | See sample SQL |

## Sample SQL

```sql
SELECT
  PREM_RATING_RULE_MASTER.RATING_RULE_MASTER_ID as ID,
  PREM_RATING_RULE_MASTER.RATING_RULE_MASTER_EFF_DATE as EffectiveDate,
  PREM_RATING_RULE_MASTER.RATING_RULE_MASTER_EXP_DATE as ExpirationDate,
  PREM_RATING_RULE_MASTER.FINANCIAL_SYSTEM_CODE as FinancialSystemCode
FROM PREM_RATING_RULE_MASTER
WHERE
  PREM_RATING_RULE_MASTER.RATING_RULE_MASTER_EFF_DATE <= :EffectiveDate
  AND (
    PREM_RATING_RULE_MASTER.RATING_RULE_MASTER_EXP_DATE > :EffectiveDate
    OR PREM_RATING_RULE_MASTER.RATING_RULE_MASTER_EXP_DATE IS NULL)
  AND PREM_RATING_RULE_MASTER.FINANCIAL_SYSTEM_CODE = :FinancialSystemCode
```


> **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.Premium/Rating/clsRatingRuleMaster.vb`
