---
title: "SQL-032: Check whether rate file still has manual classes"
summary: Check whether rate file still has manual classes
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Rating
reference_type: package
---

# SQL-032: Check whether rate file still has manual classes

This document records the SQL used by `clsRateFileMaster` in `SAIF.Business.Policy.Rating`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-032 |
| **Operation type** | Read |
| **Execution method** | Application method — text |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsRateFileMaster` |
| **Criteria property** | `N/A — non-Criteria method` |
| **Lifecycle method** | `CanDeleteRateFileMasterRecord` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:inWCISRateFileSeqNum` | Input | Not specified | not specified | Bound parameter. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MANUAL_CLASS_BASE](../database-tables.md#manual_class_base) | SELECT | See sample SQL and source for column usage. |

## Sample SQL

```sql
select
  count(*)
from
  manual_class_base
where
  rate_file_seq_num = :inWCISRateFileSeqNum
```

## Operations and processes
- [Guard a rate file master delete](../operations/guard-a-rate-file-master-delete.md)

## Business rules
- [BR-005](../business-rules.md#br-005-a-failure-while-probing-delete-eligibility-is-surfaced-as-an-application-exception-carrying-the-frameworks-media-files-check-message)
- [BR-008](../business-rules.md#br-008-a-rate-file-master-may-not-be-deleted-while-any-manual_class_base-row-references-its-sequence-number)

> **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.Rating\clsRateFileMaster.vb:494-534`