Changes between Version 6 and Version 7 of AdvancedReports
- Timestamp:
- 01/11/23 01:38:43 (23 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdvancedReports
v6 v7 83 83 84 84 {{{ 85 select qt.userid, q.quizname, avg(rt.points) from quiztaker qt 85 select qt.userid, 86 q.quizname, 87 avg(rt.points) 88 from quiztaker qt 86 89 left join attempt a on qt.userid= a.userid 87 90 left join quiz q on q.quizid=a.quizid … … 128 131 129 132 {{{ 130 select u.username, count(miatq.medalid) as medal_count from quiztaker qt 131 left join medal_is_awarded_to_quiztaker miatq on qt.userid = miatq.userid 132 left join user_table u on qt.userid = u.userid 133 select u.username, 134 count(miatq.medalid) as medal_count 135 136 from quiztaker qt 137 138 left join medal_is_awarded_to_quiztaker miatq 139 on qt.userid = miatq.userid 140 left join user_table u 141 on qt.userid = u.userid 133 142 group by 1 134 143 order by medal_count … … 154 163 }}} 155 164 165 == Квизови рангирани според бројот на точно одговорени прашања 156 166 157 167 168 {{{ 169 select q.quizname, 170 count(qipoq.questionid) as counter 171 172 from quiz q 173 174 left join question_is_part_of_quiz qipoq 175 on qipoq.quizid = q.quizid 176 join question que 177 on que.questionid = qipoq.questionid 178 join selectionquestion sq 179 on que.questionid = sq.questionid 180 left join choice c 181 on c.questionid = que.questionid 182 left join selectedchoice s 183 on s.choiceid = c.choiceid 184 where s.choiceid=c.choiceid and c.iscorrect 185 group by 1 186 order by counter 187 }}} 188 189