SELECT cso_name cso_name, cso_datesigned cso_datesigned,
cso_signaturetype cso_signaturetype,
(SELECT uco_desc from r5ucodes where uco_rcode='SGNF' AND uco_rentity='ESTP' and uco_code=cso_signaturetype) cso_signaturedesc,
cso_remark cso_remark,
cso_company cso_company,
cso_responsibility cso_responsibility
FROM r5contractorsignoff WHERE cso_permittoworkcode = <param.permittowork>
ORDER BY cso_datesigned DESC, CSO_NAME ASC
