Skip to content

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 SELECT PROVIDER_SEQ_NUM, TAX_ID, REGISTERED_NAME

Sample 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

Business rules

Note: Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business\SAIF.Business.View.Provider\clsProviderTaxIDCollection.vb