---
title: SQL-018: Provider tax IDs by provider
summary: Provider tax IDs by provider retrieval query.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-07-24
library: SAIF.Business.View.Provider
reference_type: package
---

# SQL-018: Provider tax IDs by provider

This statement supports the ``clsProviderTaxIDCollection`` retrieval path by reading provider-domain data from Oracle tables and projecting the result into business objects or DTO lists.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-018 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | ``clsProviderTaxIDCollection`` |
| **Criteria property** | ``RetrieveSQL`` |
| **Lifecycle method** | `BeforeRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:ProviderSeqNum` | Input | Decimal | N/A | Retrieves tax IDs for one provider. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PROVIDER_TAX_ID](../database-tables.md#provider_tax_id) | SELECT | PROVIDER_SEQ_NUM, TAX_ID, REGISTERED_NAME |

## Sample SQL

```sql
SELECT
  TAX_ID AS TaxID,
  TAX_ID_DISPLAY_DESCR AS TaxIDDisplayDescr,
  PROVIDER_SEQ_NUM AS ProviderSeqNum,
  REGISTERED_NAME AS RegisteredName,
  REGISTERED_NAME_UPPER_CASE AS RegisteredNameUpperCase,
  EFF_DATE AS EffDate,
  EXP_DATE AS ExpDate,
  W9_SENT_DATE AS W9SentDate,
  W9_RECEIVED_DATE AS W9ReceivedDate,
  REPORT_1099_FLAG AS Report1099Flag,
  CITY_NAME AS CityName,
  ADDRESS_LINE1 AS AddressLine1,
  ADDRESS_LINE2 AS AddressLine2,
  ADDRESS_LINE3 AS AddressLine3,
  STATE_CODE AS StateCode,
  ZIP_CODE AS ZipCode,
  ZIP_CODE_EXT AS ZipCodeExt,
  ADDRESS_LINE4 AS AddressLine4,
  PROVIDER_TAX_ID.COUNTRY_CODE AS CountryCode,
  FOREIGN_ADDRESS_FLAG AS ForeignAddressFlag
FROM PROVIDER_TAX_ID
WHERE PROVIDER_SEQ_NUM = :ProviderSeqNum
```

## Operations and processes
- [Retrieve provider tax IDs](../operations/provider-tax-id-retrieval.md)

## Business rules
- [BR-004: Provider tax ID retrieve-only access](../business-rules.md#br-004-provider-tax-id-retrieve-only-access)

## Related documentation
- [Index](../index.md)
- [Overview](../overview.md)
- [Architecture](../architecture.md)
- [Dependencies](../dependencies.md)
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [Database tables](../database-tables.md)
- [SQL catalog](../sql/index.md)
- [API reference](../api/index.md)

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.
## Sources
- `Business\SAIF.Business.View.Provider\clsProviderTaxIDCollection.vb`
