Database SQL Operation: QuestionAlias.countByAliasTypeAndDeterminationDeliveryID
Description: | Returns the count of alias texts for the given determination delivery id and alias type |
Sterotype: | ns |
SELECT
COUNT(*)
INTO
:count
FROM
QuestionnaireVersion,
Question,
DPQuestionnaireLink,
DeterminationDelivery,
QuestionAlias
WHERE DeterminationDelivery.determinationDeliveryID = :determinationDeliveryID
AND DPQuestionnaireLink.determinationPackageVersionID = DeterminationDelivery.determinationPackageVersionID
AND Question.questionnaireVersionID = DPQuestionnaireLink.questionnaireVersionID
AND QuestionnaireVersion.questionnaireVersionID = Question.questionnaireVersionID
AND QuestionAlias.questionID = Question.questionID
AND QuestionAlias.type = :aliasType
|