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

# SQL-034: Insert premiumset

Insert premiumset in the context of `clsPremiumSet`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNumber` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:PolicyPeriodEffectiveDate` | Input | Date | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:PremiumSetID` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:BillFlag` | Input | String (Y/N)* | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:PremiumSetTypeCode` | Input | String* | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:CreateUser` | Input | String* | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:CreateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:PSTProcessDate` | Input | Date | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:UpdateDate` | Input | Date | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:UpdateUser` | Input | Date | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:ComboPeriodPremSetSeqNumber` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |
| `:InterimPremiumEndorseFlag` | Input | String (Y/N)* | *inferred/unknown* | Bind variable in clsPremiumSet.InsertSQL. |

## Tables

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

## Sample SQL

```sql
Insert into PREM_HIST_SUMMARY (
  POLICY_NUM,
  POLICY_PERIOD_EFF_DATE,
  PREM_HIST_SET_ID,
  BILL_FLAG,
  PREM_HIST_TYPE_CODE,
  CREATE_USER_NAME,
  CREATE_DATE,
  PST_PROCESS_DATE,
  UPDATE_DATE,
  UPDATE_USER,
  COMBO_PERIOD_PREM_SET_SEQ_NUM,
  INTERIM_PREMIUM_ENDORSE_FLAG)
Values (
  :PolicyNumber,
  :PolicyPeriodEffectiveDate,
  :PremiumSetID,
  :BillFlag,
  :PremiumSetTypeCode,
  :CreateUser,
  :CreateDate,
  :PSTProcessDate,
  :UpdateDate,
  :UpdateUser,
  :ComboPeriodPremSetSeqNumber,
  :InterimPremiumEndorseFlag)
```


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