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

# SQL-058: Retrieve policyperiodprepay

Retrieve policyperiodprepay in the context of `clsPolicyPeriodPrepay`.

## Classification

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

## Parameters

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

## Tables

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

## Sample SQL

```sql
SELECT
  PREPAY_POLICY_PERIOD.POLICY_NUM as PolicyNumber,
  PREPAY_POLICY_PERIOD.POLICY_PERIOD_EFF_DATE as PolicyPeriodEffectiveDate,
  PREPAY_POLICY_PERIOD.PREPAY_FREQUENCY_CODE as FrequencyCode,
  PREPAY_POLICY_PERIOD.CANCEL_DATE as CancelDate,
  PREPAY_POLICY_PERIOD.DISCOUNT_AMT as DiscountAmount,
  PREPAY_POLICY_PERIOD.CREATE_DATE as CreateDate,
  PREPAY_POLICY_PERIOD.CREATE_USER as CreateUser,
  PREPAY_POLICY_PERIOD.UPDATE_DATE as UpdateDate,
  PREPAY_POLICY_PERIOD.UPDATE_USER as UpdateUser
FROM PREPAY_POLICY_PERIOD
WHERE
  PREPAY_POLICY_PERIOD.POLICY_NUM = :PolicyNumber
  AND PREPAY_POLICY_PERIOD.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/clsPolicyPeriodPrepay.vb`
