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

# SQL-062: Retrieve policyperiodratingplan collection

Retrieve policyperiodratingplan collection in the context of `clsPolicyPeriodRatingPlanCollection`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-062 |
| **Operation type** | Read |
| **Execution method** | Reader/Scalar |
| **Database** | Oracle |
| **Command type** | Text |
| **Schema** | N/A — accessed via DB link @POLDB (Policy database) |
| **Business object** | `clsPolicyPeriodRatingPlanCollection` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | BeforeRetrieve / AfterRetrieve |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNumber` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlanCollection.RetrieveSQL. |
| `:PolicyPeriodEffectiveDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlanCollection.RetrieveSQL. |

## Tables

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

## Sample SQL

```sql
SELECT
  POLICY_NUM as PolicyNumber,
  POLICY_PERIOD_EFF_DATE as PolicyPeriodEffectiveDate,
  RATING_PLAN_EFF_DATE as RatingPlanEffectiveDate,
  RATING_PLAN_EXP_DATE as RatingPlanExpirationDate,
  RATING_PLAN_CODE as RatingPlanCode,
  RATING_PLAN_TYPE_CODE as RatingPlanTypeCode,
  RATING_PLAN_IMP_REASON_CODE as RatingPlanImpReasonCode,
  RATING_PLAN_FACTOR as RatingPlanFactor,
  SARAP_FACTOR as SARAPFactor,
  CREATE_DATE as CreateDate,
  CREATE_USER as CreateUser,
  UPDATE_DATE as UpdateDate,
  UPDATE_USER as UpdateUser
FROM POLICY_PERIOD_RATING_PLAN
WHERE
  POLICY_NUM = :PolicyNumber
  AND POLICY_PERIOD_EFF_DATE = :PolicyPeriodEffectiveDate
```


> **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/clsPolicyPeriodRatingPlanCollection.vb`
