You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@"SELECT fc.ID, c.ID AS CompetencyID, c.Name, c.Description, fc.Ordering, COUNT(caq.AssessmentQuestionID) AS AssessmentQuestions,(select COUNT(CompetencyId) from CompetencyLearningResources where CompetencyID=c.ID) AS CompetencyLearningResourcesCount
913
+
@$"SELECT fc.ID, c.ID AS CompetencyID, c.Name, c.Description, fc.Ordering, COUNT(caq.AssessmentQuestionID) AS AssessmentQuestions,(select COUNT(CompetencyId) from CompetencyLearningResources where CompetencyID=c.ID) AS CompetencyLearningResourcesCount
904
914
FROM FrameworkCompetencies AS fc
905
915
INNER JOIN Competencies AS c ON fc.CompetencyID = c.ID
906
916
LEFT OUTER JOIN
907
917
CompetencyAssessmentQuestions AS caq ON c.ID = caq.CompetencyID
908
918
WHERE fc.FrameworkID = @frameworkId
909
-
AND fc.FrameworkCompetencyGroupID IS NULL
919
+
AND fc.FrameworkCompetencyGroupID IS NULL{assessmentFilter}
910
920
GROUP BY fc.ID, c.ID, c.Name, c.Description, fc.Ordering
0 commit comments