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

# SQL-032: Insert policyperiodratingplan

Insert policyperiodratingplan in the context of `clsPolicyPeriodRatingPlan`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-032 |
| **Operation type** | Insert |
| **Execution method** | NonQuery |
| **Database** | Oracle |
| **Command type** | Text |
| **Schema** | N/A — accessed via DB link @POLDB (Policy database) |
| **Business object** | `clsPolicyPeriodRatingPlan` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | BeforeInsert / AfterInsert |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNumber` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:PolicyPeriodEffectiveDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:RatingPlanEffectiveDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:RatingPlanExpirationDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:RatingPlanCode` | Input | String* | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:RatingPlanTypeCode` | Input | String* | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:RatingPlanImpReasonCode` | Input | String* | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:RatingPlanFactor` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:SARAPFactor` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:CreateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:CreateUser` | Input | String* | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:UpdateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |
| `:UpdateUser` | Input | Date | *inferred/unknown* | Bind variable in clsPolicyPeriodRatingPlan.InsertSQL. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [POLICY_PERIOD_RATING_PLAN](../database-tables.md#policy_period_rating_plan) | INSERT | See sample SQL |

## Sample SQL

```sql
Insert into POLICY_PERIOD_RATING_PLAN (
  POLICY_NUM,
  POLICY_PERIOD_EFF_DATE,
  RATING_PLAN_EFF_DATE,
  RATING_PLAN_EXP_DATE,
  RATING_PLAN_CODE,
  RATING_PLAN_TYPE_CODE,
  RATING_PLAN_IMP_REASON_CODE,
  RATING_PLAN_FACTOR,
  SARAP_FACTOR,
  CREATE_DATE,
  CREATE_USER,
  UPDATE_DATE,
  UPDATE_USER)
Values (
  :PolicyNumber,
  :PolicyPeriodEffectiveDate,
  :RatingPlanEffectiveDate,
  :RatingPlanExpirationDate,
  :RatingPlanCode,
  :RatingPlanTypeCode,
  :RatingPlanImpReasonCode,
  :RatingPlanFactor,
  :SARAPFactor,
  :CreateDate,
  :CreateUser,
  :UpdateDate,
  :UpdateUser)
```


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