Operation Details
Description:  
Sterotype: nsmulti
SQL
SELECT
  ServiceSupplier.primaryAlternateID,
  ServiceSupplier.concernRoleID,
  ServiceSupplier.name,
  ConcernRole.sensitivity,
  city.elementValue,
  addressLine1.elementValue
INTO
  :primaryAlternateID,
  :concernRoleID,
  :name,
  :sensitivity,
  :city,
  :addressLine1 
FROM
  ConcernRole,
  ServiceSupplier,
  AddressElement city,
  AddressElement addressLine1 
WHERE 
  (
    :searchByName = '0' 
    OR ServiceSupplier.upperName like :name 
  ) 
  AND ConcernRole.concernRoleID = ServiceSupplier.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 
  )