Skip to content

SQL-045: Retrieve clsTerrorismRate data

This document records the SQL used by clsTerrorismRate in SAIF.Business.Policy.Rating.

Classification

Field Value
SQL ID SQL-045
Operation type Read
Execution method Data portal — criteria SQL
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsTerrorismRate
Criteria property RetrieveSQL
Lifecycle method BeforeRetrieve / AfterRetrieve

Parameters

Parameter Direction Type Max length Description
:MarketType Input Not specified not specified Bound parameter.
:EffectiveDate Input Not specified not specified Bound parameter.

Tables

Table Access Columns used
TERRORISM_RATE SELECT See sample SQL and source for column usage.

Sample SQL

Select
  Terrorism_RATE.MARKET_TYPE_CODE as MarketTypeCode,
  Terrorism_RATE.EFF_DATE as EffectiveDate,
  Terrorism_RATE.EXP_DATE as ExpirationDate,
  Terrorism_RATE.Terrorism_RATE as Rate,
  Terrorism_RATE.CREATE_USER as CreateUser,
  Terrorism_RATE.CREATE_DATE as CreateDate,
  Terrorism_RATE.UPDATE_USER as UpdateUser,
  Terrorism_RATE.UPDATE_DATE as UpdateDate
From
  Terrorism_RATE
Where
  market_type_code = :MarketType
  and eff_date <= :EffectiveDate
  and (exp_date is null or exp_date > :EffectiveDate)

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.Rating\clsTerrorismRate.vb:522-540