Skip to content

SQL-VP-023 Retrieve trading-as names for a policy

The primary retrieval path for clsTradingAsCollection.

Classification

Field Value
SQL ID SQL-VP-023
Operation type Read
Execution method Inline SQL
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsTradingAsCollection
Criteria property RetrieveSQL (inline)
Lifecycle method BeforeRetrieve / AfterRetrieve

Parameters

Parameter Direction Type Max length Description
:PolicyNumber Input Decimal N/A Policy number to retrieve trading-as names for.

Tables

Table Access Columns used
TRADING_AS SELECT POLICY_NUM, BUS_SEQ_NUM, TRADING_SEQ_NUM, FEID_NUM, TRADING_AS_NAME

Sample SQL

SELECT
  TRADING_AS.BUS_SEQ_NUM,
  TRADING_AS.POLICY_NUM,
  TRADING_AS.TRADING_SEQ_NUM,
  TRADING_AS.FEID_NUM,
  TRADING_AS.TRADING_AS_CANCEL_DATE,
  TRADING_AS.TRADING_AS_NAME,
  TRADING_AS.UITR_NUMBER,
  TRADING_AS.TRADING_AS_NAME_EFF_DATE,
  TRADING_AS.AFFILIATE_SSN,
  TRADING_AS.CREATE_USER,
  TRADING_AS.CREATE_DATE,
  TRADING_AS.UPDATE_USER,
  TRADING_AS.UPDATE_DATE,
  TRADING_AS.REGISTRATION_DATE,
  TRADING_AS.TRADING_AS_TYPE_CODE
FROM
  TRADING_AS
WHERE
  TRADING_AS.POLICY_NUM = :PolicyNumber

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

  • SAIF.Business.View.Policy\clsTradingAsCollection.vb