SQL-029: Count IMAGE_DOCUMENT_TYPE_CODE rows for validation¶
This statement is a validation query that counts rows in IMAGE_DOCUMENT_TYPE_CODE matching a given document type code, category code, and file code combination. It is used by the clsImageIdx category/type validation logic (via clsImageMsgConst.SQL_CAT_TYPE_MISMATCH) to verify that the combination is valid before saving an image index record.