---
title: "SQL-075: Retrieve policy location"
summary: "Retrieve policy location"
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Core
reference_type: package
---

# SQL-075: Retrieve policy location

Retrieve policy location in the context of `clsPolicyLocation`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-075 |
| **Operation type** | Read |
| **Execution method** | CommandType.Text / DataRequestType.DataResultSet |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPolicyLocation` |
| **Criteria property** | `*n/a - application layer*` |
| **Lifecycle method** | `clsPolicyLocation.GetAuditContacts (application layer)` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:LocationSequenceNumber` | Input | bound from `LocationSequenceNumber` | - | Bound in `clsPolicyLocation.GetAuditContacts` (line 646) |

## Tables

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

## Sample SQL

```sql
SELECT
  sum(nvl(ermod_premium_amt, 0))
FROM
  non_wcis_stat_trans
WHERE
  policy_num = :PolicyNumber
  AND policy_period_eff_date = :PolicyPeriodEffectiveDate
  AND (
    JOB_CLASS_CODE in (
      4,
      32,
      88,
      121,
      122,
      123,
      277,
      278,
      930,
      931,
      991,
      9041,
      9046,
      9803,
      9804,
      9805,
      9806,
      9807,
      9808,
      9809,
      9810,
      9811,
      9812,
      9813,
      9814,
      9815,
      9816,
      9817,
      9818,
      9819,
      9820,
      9821,
      9822,
      9840,
      9848,
      9849,
      9851,
      9885,
      9886,
      9985)
    OR nvl(exposure_count,0) <> 0)
  AND premium_audit_waiver_flag = 'N'
```

## Operations and processes
- [Filter policy locations for a view](../operations/filter-policy-locations-for-a-view.md)

## Business rules
- [BR-017: A location is active as of a date](../business-rules.md#br-017-a-location-is-active-as-of-a-date)
- [BR-018: Summary locations are active locations of type Business](../business-rules.md#br-018-summary-locations-are-active-locations-of-type-business)
- [BR-020: When masking is requested, policyholder names, contact identity/contact-method](../business-rules.md#br-020-when-masking-is-requested-policyholder-names-contact-identitycontact-method)

> **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.Core\clsPolicyLocation.vb`
