﻿---
title: "SQL-064: Retrieve premiumadjustmenttypecode"
summary: Retrieve premiumadjustmenttypecode
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Premium
reference_type: package
---

# SQL-064: Retrieve premiumadjustmenttypecode

Retrieve premiumadjustmenttypecode in the context of `clsPremiumAdjustmentTypeCode`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-064 |
| **Operation type** | Read |
| **Execution method** | Reader/Scalar |
| **Database** | Oracle |
| **Command type** | Text |
| **Schema** | [unqualified] |
| **Business object** | `clsPremiumAdjustmentTypeCode` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | BeforeRetrieve / AfterRetrieve |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | String* | *inferred/unknown* | Bind variable in clsPremiumAdjustmentTypeCode.RetrieveSQL. |
| `:RatingRuleMasterID` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPremiumAdjustmentTypeCode.RetrieveSQL. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PREM_ADJUSTMENT_TYPE_CODE](../database-tables.md#prem_adjustment_type_code) | SELECT | See sample SQL |

## Sample SQL

```sql
SELECT
  PATC.CODE as Code,
  PATC.CODE_DESCR as Description,
  PATC.RATING_RULE_MASTER_ID as RatingRuleMasterID,
  PATC.FLAT_PREMIUM as FlatPremium,
  PATC.PREM_ADJ_MANUAL_MOD_CODE as AdjustmentManualModCode,
  PATC.MIN_RANGE_VALUE as MinimumRangeValue,
  PATC.MAX_RANGE_VALUE as MaximumRangeValue,
  PATC.DEFAULT_VALUE as DefaultValue,
  PATC.SUBTOTAL_FLAG as SubtotalFlag,
  PATC.DYNAMIC_SQL as DynamicSQL
FROM PREM_ADJUSTMENT_TYPE_CODE PATC
WHERE
  PATC.CODE = :Code
  AND patc.rating_rule_master_id = :RatingRuleMasterID
```


> **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.Premium/Rating/clsPremiumAdjustmentTypeCode.vb`
