---
title: Read Pa Selection Category Code Data
summary: SQL-055
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Audit.Premium
reference_type: package
---

# SQL-055: Read Pa Selection Category Code Data

This statement supports the premium-audit library by read Pa Selection Category Code Data.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-055 |
| **Operation type** | Read |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuditSelectionCategoryCode` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve / AfterRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | bound from `MyCriteria.Code` | 5 | Bound in `clsAuditSelectionCategoryCode.BeforeRetrieve` (line 141) |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [`PA_SELECTION_CATEGORY_CODE`](../database-tables.md#pa_selection_category_code) | JOIN | See sample SQL. |
| [`PA_SLCTN_CATEGORY_GROUP_CODE`](../database-tables.md#pa_slctn_category_group_code) | JOIN | See sample SQL. |

## Sample SQL

```sql
SELECT
  PSCC.CODE as Code,
  PSCC.CODE_DESCR as CodeDescription,
  PSCC.PA_SLCTN_CATEGORY_GROUP_CODE as GroupCode,
  PSCC.SELECT_ORDER_NUM as SelectionOrderNum,
  PSCGC.CODE_DESCR as GroupCodeDescription,
  PSCGC.PRIORITY_NUM as PriorityNumber
FROM
  PA_SELECTION_CATEGORY_CODE PSCC,
  PA_SLCTN_CATEGORY_GROUP_CODE PSCGC
WHERE
  PSCC.CODE = :Code
  AND PSCC.PA_SLCTN_CATEGORY_GROUP_CODE = PSCGC.CODE
```

## Operations and processes
- [Run audit selection tests](../operations/run-audit-selection-tests.md)

## Business rules
- [BR-001](../business-rules.md#br-001-deselection-category-suppresses-audit)
- [BR-003](../business-rules.md#br-003-qualifying-tests-select-audit)
- [BR-054](../business-rules.md#br-054-validselectioncategorygroupcode)



> **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.Audit.Premium/clsAuditSelectionCategoryCode.vb:299`
