---
title: Delete Pa Selection Test Data
summary: SQL-094
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Audit.Premium
reference_type: package
---

# SQL-094: Delete Pa Selection Test Data

This statement supports the premium-audit library by delete Pa Selection Test Data.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-094 |
| **Operation type** | Delete |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuditSelectionTestResult` |
| **Criteria property** | `DeleteSQL` |
| **Lifecycle method** | `BeforeDelete / AfterDelete` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:AuditSeqNum` | Input | bound from `AuditSeqNum` | — | Bound in `clsAuditSelectionTestResult.BeforeDelete` (line 162) |
| `:SelectionRuleID` | Input | bound from `SelectionRuleID` | — | Bound in `clsAuditSelectionTestResult.BeforeDelete` (line 163) |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [`PA_SELECTION_TEST`](../database-tables.md#pa_selection_test) | DELETE | See sample SQL. |

## Sample SQL

```sql
DELETE
  PA_SELECTION_TEST
WHERE
  PA_SELECTION_TEST.PA_AUDIT_SEQ_NUM = :AuditSeqNum
  AND PA_SELECTION_RULE_ID = :SelectionRuleID
```

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

## Business rules
- [BR-072](../business-rules.md#br-072-a-selection-test-result-requires-a-selection-rule-id-present-in-the-pa_selection_rule-table)



> **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/clsAuditSelectionTestResult.vb:372`
