Operation Details
Description: Count Assessment Rules Links by Assessment Configuration ID and record status.
Sterotype: ns
SQL
SELECT
  COUNT(*)
INTO
  :numberOfRecords 
FROM
  AssessmentRulesLink 
WHERE assessmentConfigurationID = :assessmentConfigurationID 
  AND 
  (
    statusCode = :statusCode 
    OR :statusCode IS NULL 
  )