---
title: "SQL-007: Retrieve market type code"
summary: Retrieve the persisted market-type code for a policy.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy
reference_type: package
---

# SQL-007: Retrieve market type code

Retrieve the persisted market-type code for a policy.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-007 |
| **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** | `MarketType` |

## Parameters

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

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [POLICY](../database-tables.md#policy) | SELECT | `POLICY_NUM`, `MARKET_TYPE_CODE`

## Sample SQL

```sql
Select
  market_type_code
from policy
where policy_num = :in_policy_num
```

## Operations and processes

- [Determine policy market type](../operations/determine-policy-market-type.md)
- [Translate domain codes to and from enums](../operations/translate-domain-codes-to-and-from-enums.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`
