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

# SQL-030: Retrieve clsPrepayDiscountFactorCollection data

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

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:SelectDate` | Input | Not specified | not specified | Bound parameter. |

## Tables

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

## Sample SQL

```sql
Select
  PREPAY_DISCOUNT_FACTOR.PREPAY_FREQUENCY_CODE as PrepayFrequencyCode,
  PREPAY_DISCOUNT_FACTOR.EFFECTIVE_DATE as EffectiveDate,
  PREPAY_DISCOUNT_FACTOR.EXPIRATION_DATE as ExpirationDate,
  PREPAY_DISCOUNT_FACTOR.DISCOUNT_FACTOR as PrepayDiscountFactor,
  PREPAY_DISCOUNT_FACTOR.CREATE_DATE as CreateDate,
  PREPAY_DISCOUNT_FACTOR.CREATE_USER as CreateUser,
  PREPAY_DISCOUNT_FACTOR.UPDATE_DATE as UpdateDate,
  PREPAY_DISCOUNT_FACTOR.UPDATE_USER as UpdateUser
From
  PREPAY_DISCOUNT_FACTOR
Where
  :SelectDate >= PREPAY_DISCOUNT_FACTOR.EFFECTIVE_DATE
  AND :SelectDate < NVL(PREPAY_DISCOUNT_FACTOR.EXPIRATION_DATE,'01-Jan-2199')
```

## Operations and processes
- [Select active prepay frequencies](../operations/select-active-prepay-frequencies.md)

## Business rules
- [BR-021](../business-rules.md#br-021-a-prepay-frequency-is-offered-on-a-date-only-when-a-prepay-discount-factor-is-in-force-for-that-frequency-on-that-date)
- [BR-025](../business-rules.md#br-025-a-prepay-discount-factor-requires-a-non-empty-prepay-frequency-code)

> **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\clsPrepayDiscountFactorCollection.vb:227-235`