---
title: "SQL-018: Retrieve active class paragraph text"
summary: Retrieve active class paragraph text
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Rating
reference_type: package
---

# SQL-018: Retrieve active class paragraph text

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-018 |
| **Operation type** | Read |
| **Execution method** | Application method — text |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsManualClassBase` |
| **Criteria property** | `N/A — non-Criteria method` |
| **Lifecycle method** | `GetClassParagraph` |

## Parameters

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

## Tables

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

## Sample SQL

```sql
SELECT
  p.class_paragraph
FROM
  manual_class_paragraph_usage pu,
  manual_class_paragraph p
WHERE
  pu.manual_class_num = :ManualClassNumber
  AND pu.PARAGRAPH_EFF_DATE <= :ARD
  AND (pu.paragraph_exp_date >= :ARD OR pu.paragraph_exp_date IS NULL)
  AND pu.market_type_code = :MarketTypeCode
  AND pu.new_outstanding_code = 'N'
  AND pu.paragraph_num = p.paragraph_num
```

## Operations and processes
- [Retrieve the class description paragraph](../operations/retrieve-the-class-description-paragraph.md)

## Business rules
- [BR-009](../business-rules.md#br-009-the-class-description-paragraph-in-force-is-the-one-whose-usage-row-covers-the-anniversary-rating-date-matches-the-market-type-and-carries-newoutstanding-code-n)

> **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\clsManualClassBase.vb:848-884`