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

# SQL-053: Retrieve paymentplantype

Retrieve paymentplantype in the context of `clsPaymentPlanType`.

## Classification

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

## Parameters

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

## Tables

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

## Sample SQL

```sql
SELECT
  PAYMENT_PLAN_TYPE_CODE.CODE as Code,
  PAYMENT_PLAN_TYPE_CODE.CODE_DESCR as Description,
  PAYMENT_PLAN_TYPE_CODE.MARKET_TYPE_CODE as MarketTypeCode,
  PAYMENT_PLAN_TYPE_CODE.POLICY_RENEWAL_TRACK_CODE as PolicyRenewalTrackCode,
  PAYMENT_PLAN_TYPE_CODE.PAYROLL_REPORT_SCHEDULE_FLAG as PayrollReportScheduleFlag,
  PAYMENT_PLAN_TYPE_CODE.GENERATE_BILLING_CODE as GenerateBillingCode,
  PAYMENT_PLAN_TYPE_CODE.CREATE_DATE as CreateDate,
  PAYMENT_PLAN_TYPE_CODE.CREATE_USER as CreateUser,
  PAYMENT_PLAN_TYPE_CODE.UPDATE_DATE as UpdateDate,
  PAYMENT_PLAN_TYPE_CODE.UPDATE_USER as UpdateUser
FROM PAYMENT_PLAN_TYPE_CODE
WHERE
  PAYMENT_PLAN_TYPE_CODE.CODE = :Code
```


> **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/Billing/clsPaymentPlanType.vb`
