Changes between Version 6 and Version 7 of AdvancedReports


Ignore:
Timestamp:
01/11/23 01:38:43 (23 months ago)
Author:
201100
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v6 v7  
    8383
    8484{{{
    85 select qt.userid, q.quizname, avg(rt.points) from quiztaker qt
     85select   qt.userid,
     86         q.quizname,
     87         avg(rt.points)
     88from quiztaker qt
    8689left join attempt a on qt.userid= a.userid
    8790left join quiz q on q.quizid=a.quizid
     
    128131
    129132{{{
    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
     133select   u.username,
     134         count(miatq.medalid) as medal_count
     135
     136from quiztaker qt
     137
     138left join medal_is_awarded_to_quiztaker miatq
     139on qt.userid = miatq.userid
     140left join user_table u
     141on qt.userid = u.userid
    133142group by 1
    134143order by medal_count
     
    154163}}}
    155164
     165== Квизови рангирани според бројот на точно одговорени прашања
    156166
    157167
     168{{{
     169select   q.quizname,
     170         count(qipoq.questionid)  as counter
     171
     172from quiz q
     173
     174left join question_is_part_of_quiz qipoq
     175on qipoq.quizid = q.quizid
     176join question que
     177on que.questionid = qipoq.questionid
     178join selectionquestion sq
     179on que.questionid = sq.questionid
     180left join choice c
     181on c.questionid = que.questionid
     182left join selectedchoice s
     183on s.choiceid = c.choiceid
     184where s.choiceid=c.choiceid and c.iscorrect
     185group by 1
     186order by counter
     187}}}
     188
     189