scoring.diff

Jérôme O., 12/02/2018 01:06 pm

Download (763 Bytes)

 
scoring.pm 2018-09-17 23:21:05.982158102 +0200
512 512
      ." ) AS ticked"
513 513
      ." FROM ".$self->table("answer")
514 514
      ." WHERE student=?"},
515
     'studentSkillLevel'=>
516
     {'sql'=>"SELECT SUBSTR(t.title, 1, INSTR(t.title, ':')-1) AS skill, SUM(s.score)/SUM(s.max)"
517
      ." FROM ".$self->table("title"). " t"
518
      ." INNER JOIN ".$self->table("score")." s"
519
      ." ON s.question=t.question"
520
      ." WHERE t.title LIKE '%:%' AND s.student=? AND s.copy=?"
521
      ." GROUP BY s.copy, s.student, skill"},
515 522
     'studentQuestionsBase'=>
516 523
     {'sql'=>"SELECT q.question,q.type,q.indicative,q.strategy,t.title"
517 524
      .",d.strategy AS default_strategy"