---
title: "SQL-004: Fetch group-discount sequence token"
summary: Fetch group-discount sequence token using a placeholder token
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Group
reference_type: package
---

# SQL-004: Fetch group-discount sequence token

`SQL-004` fetch group-discount sequence token in support of `clsGroupAssociationDiscount`. The sequence token shown in the SQL text is a placeholder rather than executable Oracle `NEXTVAL` syntax, so the real sequence name is unknown.**

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-004 |
| **Operation type** | Sequence |
| **Execution method** | Inline SQL via BOF data portal |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsGroupAssociationDiscount` |
| **Criteria property** | `CreateSQL` |
| **Lifecycle method** | none (no `BeforeCreate` override) |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| None | N/A | N/A | N/A | This statement has no bind parameters. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [DUAL](../database-tables.md#dual) | SELECT | GROUP_ASSOCIATION_CODE_NEXTVAL |

## Sample SQL

```sql
SELECT GROUP_ASSOCIATION_CODE_NEXTVAL
FROM DUAL
```

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