Operation Details
Description:  
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
  ConcernRole,
  ProductProvider,
  AddressElement city,
  AddressElement addressLine1 
WHERE 
  (
    :searchByName = '0' 
    OR ProductProvider.upperName like :name 
  ) 
  AND 
  (
    :searchByRegisteredName = '0' 
    OR ProductProvider.upperRegisteredName like :registeredName 
  ) 
  AND ConcernRole.concernRoleID = ProductProvider.concernRoleID 
  AND addressLine1.addressID = ConcernRole.primaryAddressID 
  AND addressLine1.elementType = :addressLine1Type 
  AND city.addressID = ConcernRole.primaryAddressID 
  AND city.elementType = :cityType 
  AND 
  (
    :searchByAddressLine1 = '0' 
    OR addressLine1.upperElementValue like :addressLine1 
  ) 
  AND 
  (
    :searchByCity = '0' 
    OR city.upperElementValue like :city 
  )