Operation Details
Description: Method used to read product provider details based on alternate ID
Sterotype: nsmulti
SQL
SELECT
  ProductProvider.primaryAlternateID,
  ProductProvider.concernRoleID,
  ProductProvider.name,
  ProductProvider.registeredName,
  ConcernRole.sensitivity,
  city.elementValue,
  addressLine1.elementValue
INTO
  :primaryAlternateID,
  :concernRoleID,
  :name,
  :registeredName,
  :sensitivity,
  :city,
  :addressLine1 
FROM
  ProductProvider,
  ConcernRole,
  AddressElement city,
  AddressElement addressLine1 
WHERE ConcernRole.concernRoleID IN 
  ( 
  SELECT
    concernRoleID 
  FROM
    concernRoleAlternateID 
  WHERE concernRoleAlternateID.alternateID = :primaryAlternateID 
  ) 
  AND ProductProvider.concernRoleID = ConcernRole.concernRoleID 
  AND 
  (
    city.addressID = ConcernRole.primaryAddressID 
    AND city.elementType = :cityType 
  ) 
  AND 
  (
    addressLine1.addressID = ConcernRole.primaryAddressID 
    AND addressLine1.elementType = :addressLine1Type 
  )