Operation Details
Description: Checks if a work queue with the same name exists.
Sterotype: ns
SQL
SELECT
  COUNT(*)
INTO
  :numberOfRecords 
FROM
  WorkQueue 
WHERE 
  (
    workQueueID <> :workQueueID 
    OR :workQueueIDIsNull <> '0' 
  ) 
  AND 
  (
    upper(name) = :name 
  )