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

# SQL-048: Retrieve losscontrolpolicyserviceplan

Retrieve losscontrolpolicyserviceplan in the context of `clsLossControlPolicyServicePlan`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNumber` | Input | Numeric* | *inferred/unknown* | Bind variable in clsLossControlPolicyServicePlan.RetrieveSQL. |
| `:ServiceDate` | Input | Date | *inferred/unknown* | Bind variable in clsLossControlPolicyServicePlan.RetrieveSQL. |

## Tables

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

## Sample SQL

```sql
SELECT
  LC_POLICY_SERVICE_PLAN.POLICY_NUM as PolicyNumber,
  LC_POLICY_SERVICE_PLAN.EFF_DATE as EffectiveDate,
  LC_POLICY_SERVICE_PLAN.EXP_DATE as ExpirationDate,
  LC_POLICY_SERVICE_PLAN.LC_SERVICE_PLAN_CODE as LossControlServicePlanCode,
  LC_POLICY_SERVICE_PLAN.CREATE_USER as CreateUser,
  LC_POLICY_SERVICE_PLAN.CREATED_DATE as CreatedDate,
  LC_POLICY_SERVICE_PLAN.UPDATE_USER as UpdateUser,
  LC_POLICY_SERVICE_PLAN.UPDATE_DATE as UpdateDate
FROM LC_POLICY_SERVICE_PLAN
WHERE
  LC_POLICY_SERVICE_PLAN.POLICY_NUM = :PolicyNumber
  AND LC_POLICY_SERVICE_PLAN.EFF_DATE >= :ServiceDate
  AND (LC_POLICY_SERVICE_PLAN.EXP_DATE < :ServiceDate OR LC_POLICY_SERVICE_PLAN.EXP_DATE IS NULL)
```


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