Skip to content

SQL-049: Read Pa Review Reason Code Data

This statement supports the premium-audit library by read Pa Review Reason Code Data.

Classification

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

Parameters

Parameter Direction Type Max length Description
:Code Input bound from MyCriteria.Code 5 Bound in clsAuditReviewReasonCode.BeforeRetrieve (line 184)

Tables

Table Access Columns used
PA_REVIEW_REASON_CODE JOIN See sample SQL.
PA_REVIEW_REASON_RESULT JOIN See sample SQL.

Sample SQL

SELECT
  distinct(PA_REVIEW_REASON_CODE.CODE) as Code,
  PA_REVIEW_REASON_CODE.CODE_DESCR as Description,
  PA_TYPE_CODE as AuditTypeCode
FROM
  PA_REVIEW_REASON_CODE
JOIN
  PA_REVIEW_REASON_RESULT ON (CODE = PA_REVIEW_REASON_CODE)
WHERE
  PA_TYPE_CODE = :Code

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/clsAuditReviewReasonCode.vb:360