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

# SQL-066: Retrieve premiumpolicylocation

Retrieve premiumpolicylocation in the context of `clsPremiumPolicyLocation`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:LocationSequenceNumber` | Input | Numeric* | *inferred/unknown* | Bind variable in clsPremiumPolicyLocation.RetrieveSQL. |

## Tables

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

## Sample SQL

```sql
SELECT
  L.LOC_SEQ_NUM as LocationSequenceNumber,
  L.POLICY_NUM as PolicyNumber,
  L.BUS_SEQ_NUM as BusinessSequenceNumber,
  L.PARENT_LOC_SEQ_NUM as ParentLocationSequenceNumber
FROM LOCATION L
WHERE
  L.LOC_SEQ_NUM = :LocationSequenceNumber
```


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