---
title: "SQL-002: Fetch group-association sequence token"
summary: Fetch group-association 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-002: Fetch group-association sequence token

`SQL-002` fetch group-association sequence token in support of `clsGroupAssociation`. 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-002 |
| **Operation type** | Sequence |
| **Execution method** | Inline SQL via BOF data portal |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsGroupAssociation` |
| **Criteria property** | `CreateSQL` |
| **Lifecycle method** | `BeforeCreate` / `AfterCreate` |

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

## Sample SQL

```sql
SELECT CODE_NEXTVAL
FROM DUAL
```

## Operations and processes
- [Persist group associations (insert / update / delete)](../operations/persist-group-associations.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\clsGroupAssociation.vb`
