====== pears.NetQuestionGroupCountForDepartment ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Original SQL =====
create procedure "pears"."NetQuestionGroupCountForDepartment"( in "pWebUserID" char(20),in "pDepartmentID" char(20) )
result( "pCount" integer )
// IQXWeb
begin
select "count"()
from "IQXNetTagGroup"
where "iqxnettaggroupid" like "isnull"("pDepartmentID",'')+'_%'
end /* DOC
2017-08-15 PC count question groups for departments where department group id has a structure including "_9"
*/
go
COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."NetQuestionGroupCountForDepartment" IS
{create PROCEDURE pears."NetQuestionGroupCountForDepartment"(in pWebUserID char(20), in pDepartmentID char(20))
RESULT(pCount integer)
// IQXWeb
BEGIN
select
count(*)
from
IQXNetTagGroup
where
iqxnettaggroupid like isnull(pDepartmentID,'')+'_%'
END
/* DOC
2017-08-15 PC count question groups for departments where department group id has a structure including "_9"
*/
}