---
title: "SQL-112: Retrieve w c i s inquiry"
summary: "Retrieve w c i s inquiry"
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Core
reference_type: package
---

# SQL-112: Retrieve w c i s inquiry

Retrieve w c i s inquiry in the context of `WCISInquiry`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:in_policy_num` | Input | bound from `inPolicyNumber` | - | Bound in `WCISInquiry.GetMaxPolicyEffectiveDate` (line 80) |

## Tables

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

## 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
- [Determine standard premium for a period](../operations/determine-standard-premium-for-a-period.md)
- [Determine whether a period is issued](../operations/determine-whether-a-period-is-issued.md)

## Business rules
- [BR-032: Preliminary audit is required when the WCIS edit](../business-rules.md#br-032-preliminary-audit-is-required-when-the-wcis-edit)

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