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

# SQL-031: Retrieve clsPrepayFrequency data

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-031 |
| **Operation type** | Read |
| **Execution method** | Data portal — criteria SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPrepayFrequency` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |

## Parameters

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

## Tables

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

## Sample SQL

```sql
Select
  PREPAY_FREQUENCY_CODE.CODE as Code,
  PREPAY_FREQUENCY_CODE.CODE_DESCR as Description,
  PREPAY_FREQUENCY_CODE.ENDORSE_SUBCODE as EndorsementSubCode,
  PREPAY_FREQUENCY_CODE.CREATE_DATE as CreateDate,
  PREPAY_FREQUENCY_CODE.CREATE_USER as CreateUser
From
  PREPAY_FREQUENCY_CODE
Where
  PREPAY_FREQUENCY_CODE.CODE = :Code
```

## 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-032](../business-rules.md#br-032-prepay-frequency-codes-map-as-annuala-semiannuals-quarterlyq-monthlym-the-numeric-enum-values-1-2-4-10-express-the-number-of-instalments-per-year)

> **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\clsPrepayFrequency.vb:550-556`