---
title: "SQL-040: Load RTW codes"
summary: Loads all return-to-work load codes from RTW_LOAD_CODE.
status: draft
owner: <owner>
last_reviewed: 2026-07-24
library: SAIF.Business.External.Users
reference_type: package
---

# SQL-040: Load RTW codes

Loads all return-to-work load codes from `RTW_LOAD_CODE`, used by `mdlGroupAssociation` to populate the RTW group crosswalk.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-040 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `mdlGroupAssociation` |
| **Criteria property** | `DataRequest.SQLStatement` |
| **Lifecycle method** | `LoadRTWGroup` |

## Parameters

This statement has no bind parameters.

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [RTW_LOAD_CODE](../database-tables.md#rtw_load_code) | SELECT | `CODE` |

## Sample SQL

```sql
SELECT code FROM rtw_load_code
```

> **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.External.Users\mdlGroupAssociation.vb`
