select fnd_desc, fnd_code from r5findings where
(<parameter.possiblefindings> LIKE '%,' || fnd_code || ',%')
AND
(fnd_gen = '+' or exists ( select 'x'
from r5finclasses
where fcl_find = fnd_code
and fcl_class = <equipmentclasscode> and fcl_class_org = <equipmentclassorg>))
order by fnd_code,fnd_desc
