---
title: "SQL-093: Pk82033_ThirdParty.thrdparty_firm_delete"
summary: Delete operation used by `Criteria`.
status: draft
owner: SAIF
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.ThirdParty
reference_type: package
---

# SQL-093: Pk82033_ThirdParty.thrdparty_firm_delete

This SQL artifact supports ``Criteria`` by executing a delete operation through StoredProc.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-093 |
| **Operation type** | Delete |
| **Execution method** | StoredProc |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | ``Criteria`` |
| **Criteria property** | ``deletesql`` |
| **Lifecycle method** | ``Criteria delete`` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:FirmSeqNum` | Input | Number | N/A | Source value `ThrdpartyFirmSeqNum` |
| `:CompanySeqNum` | Input | Number | N/A | Source value `CompanySeqNum` |
| `:RowsAffected` | ReturnValue | Return value | N/A | Source value `m_RowsAffected` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [company_phone](../database-tables.md#company_phone) | DELETE | See sample SQL. |
| [company_address](../database-tables.md#company_address) | DELETE | See sample SQL. |
| [company](../database-tables.md#company) | DELETE | See sample SQL. |
| [THRDPARTY_TASK](../database-tables.md#thrdparty_task) | DELETE | See sample SQL. |
| [v_phone_seq](../database-tables.md#v_phone_seq) | DELETE | See sample SQL. |
| [v_fax_seq](../database-tables.md#v_fax_seq) | DELETE | See sample SQL. |
| [v_address_seq](../database-tables.md#v_address_seq) | DELETE | See sample SQL. |
| [THRDPARTY_FIRM](../database-tables.md#thrdparty_firm) | DELETE | See sample SQL. |

## Sample SQL

```sql
BEGIN Pk82033_ThirdParty.thrdparty_firm_delete(:FirmSeqNum, :CompanySeqNum, :RowsAffected); END;
-- Stored procedure body retrieved from Oracle package WCIS_DBA.Pk82033_ThirdParty.
```

> **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.Claim.ThirdParty\clsThrdPartyFirm.vb`
