Operation Details
Description: Searches Information Providers based on reference number
Sterotype: nsmulti
SQL
SELECT
  InformationProvider.name,
  InformationProvider.primaryAlternateID,
  InformationProvider.concernRoleID,
  ConcernRole.sensitivity,
  city.elementValue,
  addressLine1.elementValue
INTO
  :name,
  :primaryAlternateID,
  :concernRoleID,
  :sensitivity,
  :city,
  :addressLine1 
FROM
  InformationProvider,
  ConcernRole,
  AddressElement city,
  AddressElement addressLine1 
WHERE ConcernRole.concernRoleID IN 
  ( 
  SELECT
    concernRoleID 
  FROM
    concernRoleAlternateID 
  WHERE concernRoleAlternateID.alternateID = :primaryAlternateID 
  ) 
  AND InformationProvider.concernRoleID = ConcernRole.concernRoleID 
  AND 
  (
    city.addressID = ConcernRole.primaryAddressID 
    AND city.elementType = :cityType 
  ) 
  AND 
  (
    addressLine1.addressID = ConcernRole.primaryAddressID 
    AND addressLine1.elementType = :addressLine1Type 
  )