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

# SQL-096: Update policyrenewalratingplan

Update policyrenewalratingplan in the context of `clsPolicyRenewalRatingPlan`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-096 |
| **Operation type** | Update |
| **Execution method** | NonQuery |
| **Database** | Oracle |
| **Command type** | Text |
| **Schema** | [unqualified] |
| **Business object** | `clsPolicyRenewalRatingPlan` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | BeforeUpdate / AfterUpdate |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNumber` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:EffectiveDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:ExpirationDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:Code` | Input | String* | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:TypeCode` | Input | String* | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:ImpReasonCode` | Input | String* | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:RatingPlanFactor` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:SARAPFactor` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:CreateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:CreateUser` | Input | String* | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:UpdateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:UpdateUser` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |
| `:OrigEffectiveDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyRenewalRatingPlan.UpdateSQL. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [POLICY_RENEWAL_RATING_PLAN](../database-tables.md#policy_renewal_rating_plan) | UPDATE | See sample SQL |

## Sample SQL

```sql
Update POLICY_RENEWAL_RATING_PLAN
SET
  POLICY_NUM = :PolicyNumber,
  RATING_PLAN_EFF_DATE = :EffectiveDate,
  RATING_PLAN_EXP_DATE = :ExpirationDate,
  RATING_PLAN_CODE = :Code,
  RATING_PLAN_TYPE_CODE = :TypeCode,
  RATING_PLAN_IMP_REASON_CODE = :ImpReasonCode,
  RATING_PLAN_FACTOR = :RatingPlanFactor,
  SARAP_FACTOR = :SARAPFactor,
  CREATE_DATE = :CreateDate,
  CREATE_USER = :CreateUser,
  UPDATE_DATE = :UpdateDate,
  UPDATE_USER = :UpdateUser
WHERE
  POLICY_RENEWAL_RATING_PLAN.POLICY_NUM = :PolicyNumber
  AND rating_plan_eff_date = :OrigEffectiveDate
```


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