Skip to content

SQL-066: Read Pa Selection Test Data

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

Classification

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

Parameters

Parameter Direction Type Max length Description
:AuditSeqNum Input bound from MyCriteria.AuditSeqNum — Bound in clsAuditSelectionTestResultCollection.BeforeRetrieve (line 133)

Tables

Table Access Columns used
PA_SELECTION_TEST JOIN See sample SQL.
PA_SELECTION_RULE JOIN See sample SQL.

Sample SQL

SELECT
  PAST.CREATE_DATE as CreateDate,
  PAST.CREATE_USER as CreateUser,
  PAST.PA_AUDIT_SEQ_NUM as AuditSeqNum,
  PAST.PA_SELECTION_RULE_ID as SelectionRuleID,
  PAST.UPDATE_SEQ_NUM as UpdateSeqNum,
  PSR.RULE_DESCR as RuleDescription
FROM
  PA_SELECTION_TEST PAST,
  PA_SELECTION_RULE PSR
WHERE
  PAST.PA_AUDIT_SEQ_NUM = :AuditSeqNum
  AND PAST.pa_selection_rule_id = PSR.pa_selection_rule_id
ORDER BY
  past.pa_audit_seq_num,
  past.pa_selection_rule_id

Operations and processes

Business rules

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/clsAuditSelectionTestResultCollection.vb:313