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

# SQL-032: Update group association discount row

`SQL-032` update group association discount row in support of `clsGroupAssociationDiscount`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-032 |
| **Operation type** | Update |
| **Execution method** | Inline SQL via BOF data portal |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsGroupAssociationDiscount` |
| **Criteria property** | `UpdateSQL` |
| **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) | UPDATE | GROUP_ASSOCIATION_CODE, EFFECTIVE_DATE, EXPIRATION_DATE, PCNT_DISCOUNT, CREATE_DATE, CREATE_USER_NAME, UPDATE_DATE, UPDATE_USER_NAME, PENDING_FLAG |

## Sample SQL

```sql
Update GROUP_ASSOCIATION_DETAIL
Set
  GROUP_ASSOCIATION_CODE = :GroupAssociationCode,
  EFFECTIVE_DATE = :EffectiveDate,
  EXPIRATION_DATE = :ExpirationDate,
  PCNT_DISCOUNT = :GroupDiscount,
  CREATE_DATE = :CreateDate,
  CREATE_USER_NAME = :CreateUser,
  UPDATE_DATE = :UpdateDate,
  UPDATE_USER_NAME = :UpdateUser,
  PENDING_FLAG = :TentativeFlag
Where
  GROUP_ASSOCIATION_DETAIL.GROUP_ASSOCIATION_CODE = :GroupAssociationCode
  AND GROUP_ASSOCIATION_DETAIL.EFFECTIVE_DATE = :EffectiveDate
```

## 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`
