---
title: "SQL-012: Insert group association discount row"
summary: Insert group association discount row
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Group
reference_type: package
---

# SQL-012: Insert group association discount row

`SQL-012` insert group association discount row in support of `clsGroupAssociationDiscount`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-012 |
| **Operation type** | Insert |
| **Execution method** | Inline SQL via BOF data portal |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsGroupAssociationDiscount` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | none (framework default binding) |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:GroupAssociationCode` | In | String | not specified | Owning group association code ([BR-013](../business-rules.md#br-013-group-discount-code-is-required): must be non-empty). |
| `:EffectiveDate` | In | Date | not specified | Start of the discount period. |
| `:ExpirationDate` | In | Date | not specified | End of the discount period; null while open. |
| `:GroupDiscount` | In | Decimal | not specified | Percent discount stored in `PCNT_DISCOUNT` ([BR-014](../business-rules.md#br-014-discount-factor-returns-non-applicable-when-invalid)). |
| `:CreateDate` | In | Date | not specified | Audit — row creation timestamp. |
| `:CreateUser` | In | String | not specified | Audit — creating user (`CREATE_USER_NAME`). |
| `:UpdateDate` | In | Date | not specified | Audit — last update timestamp. |
| `:UpdateUser` | In | String | 30 ([BR-021](../business-rules.md#br-021-writes-stamp-update-date-and-user)) | Audit — last updating user (`UPDATE_USER_NAME`). |
| `:TentativeFlag` | In | String | not specified | Maps to `PENDING_FLAG`; set means the discount is tentative ([BR-015](../business-rules.md#br-015-pending-flag-marks-a-tentative-discount)). |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [GROUP_ASSOCIATION_DETAIL](../database-tables.md#group_association_detail) | INSERT | GROUP_ASSOCIATION_CODE, EFFECTIVE_DATE, EXPIRATION_DATE, PCNT_DISCOUNT, CREATE_DATE, CREATE_USER_NAME, UPDATE_DATE, UPDATE_USER_NAME, PENDING_FLAG |

## Sample SQL

```sql
Insert into GROUP_ASSOCIATION_DETAIL
  (
    GROUP_ASSOCIATION_CODE,
    EFFECTIVE_DATE,
    EXPIRATION_DATE,
    PCNT_DISCOUNT,
    CREATE_DATE,
    CREATE_USER_NAME,
    UPDATE_DATE,
    UPDATE_USER_NAME,
    PENDING_FLAG
  )
Values
  (
    :GroupAssociationCode,
    :EffectiveDate,
    :ExpirationDate,
    :GroupDiscount,
    :CreateDate,
    :CreateUser,
    :UpdateDate,
    :UpdateUser,
    :TentativeFlag
  )
```

## Operations and processes
- [Supply the group discount factor to rating](../operations/supply-group-discount-factor.md)

> **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.Group\clsGroupAssociationDiscount.vb`
