---
title: SQL-012: US_CLAIM_UNIT active row by claim
summary: US_CLAIM_UNIT active row by claim used by clsClaimUnit.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.UnitStat
reference_type: package
---

# SQL-012: US_CLAIM_UNIT active row by claim

This SQL statement implements the `US_CLAIM_UNIT active row by claim` data-access path for `clsClaimUnit` in `SAIF.Business.UnitStat`. It participates in the `read` lifecycle handled by `BeforeRetrieve / RetrieveType.ClaimID`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-012 |
| **Operation type** | Read |
| **Execution method** | Inline |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsClaimUnit` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / RetrieveType.ClaimID` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:ClaimID` | Input | Decimal/SmartDecimal | N/A | Claim identifier bound from the business object or criteria. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [US_CLAIM_UNIT](../database-tables.md#us-claim-unit) | SELECT | See sample SQL |

## Sample SQL

```sql

Select US_CLAIM_UNIT.US_POLICY_UNIT_SEQ_NUM as PolicyUnitSeqNum,

       US_CLAIM_UNIT.CLAIM_ID as ClaimID,

       US_CLAIM_UNIT.ACTIVE_UNIT_FLAG as ActiveUnitFlag,

       US_CLAIM_UNIT.VALUE_CODE as ValueCode,

       US_CLAIM_UNIT.UPDATE_USER as UpdateUser,

       US_CLAIM_UNIT.UPDATE_DATE as UpdateDate,

       US_CLAIM_UNIT.UPDATE_NUM as UpdateNumber,

       US_CLAIM_UNIT.REPORTED_FATAL_FLAG as ReportedFatalFlag,

       US_CLAIM_UNIT.REPORTED_CLOSED_FLAG as ReportedClosedFlag,

       US_CLAIM_UNIT.FINAL_DENIAL_DATE as FinalDenialDate,

       US_CLAIM_UNIT.PREFERRED_WORKER_FLAG as PreferredWorkerFlag

From US_CLAIM_UNIT

Where US_CLAIM_UNIT.CLAIM_ID = :ClaimID

  and US_CLAIM_UNIT.ACTIVE_UNIT_FLAG = 'Y'

```

## Operations and processes

- [Claim unit maintenance](../operations/claim-unit-maintenance.md)

## Business rules

- [BR-US-019: A claim unit active lookup filters to ACTIVE_UNIT_FLAG = Y](../business-rules.md#br-us-019-a-claim-unit-active-lookup-filters-to-activeunitflag-y)

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources

- `Business\SAIF.Business.UnitStat\clsClaimUnit.vb`
