---
title: "SQL-008: Retrieve latest policy period effective date"
summary: Retrieve the maximum period effective date for a policy.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy
reference_type: package
---

# SQL-008: Retrieve latest policy period effective date

Retrieve the maximum period effective date for a policy.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-008 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | N/A (Application layer) |
| **Criteria property** | N/A |
| **Lifecycle method** | `MaxPolicyEffectiveDate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| `:in_policy_num` | Input | NUMBER | N/A | Policy number. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [POLICY_PERIOD](../database-tables.md#policy_period) | SELECT | `POLICY_NUM`, `POLICY_PERIOD_EFF_DATE`

## Sample SQL

```sql
Select
  policy_period_eff_date
from policy_period pp
where policy_num = :in_policy_num
  and policy_period_eff_date =
    ( select max(policy_period_eff_date)
        from policy_period pp2
       where pp2.policy_num = pp.policy_num )
```

## Operations and processes

- [Retrieve latest policy period effective date](../operations/retrieve-latest-policy-period-effective-date.md)

## Business rules

- See [Business rules](../business-rules.md).

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