Changes between Initial Version and Version 1 of Covid19LmsAdmin


Ignore:
Timestamp:
Apr 7, 2020, 10:19:35 AM (5 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Covid19LmsAdmin

    v1 v1  
     1== The following contains how to take statistics from Moodle instances. ==
     2
     3{{{
     4#!sql
     5SQL
     6SELECT A.Date,A.UserLogins,B.DistinctUserLogins,C.NoOfActions FROM
     7(SELECT
     8COUNT(l.userid) AS 'UserLogins',
     9DATE_FORMAT(FROM_UNIXTIME(l.timecreated), '%D %M %Y') AS 'Date'
     10FROM prefix_logstore_standard_log l
     11WHERE l.action = 'loggedin'  AND l.timecreated >= UNIX_TIMESTAMP('2020-03-20') GROUP BY DATE_FORMAT(FROM_UNIXTIME(l.timecreated), '%D %M %Y') )A
     12JOIN
     13(SELECT
     14COUNT(DISTINCT ll.userid) AS 'DistinctUserLogins',
     15DATE_FORMAT(FROM_UNIXTIME(ll.timecreated), '%D %M %Y') AS 'Date'
     16FROM prefix_logstore_standard_log ll
     17WHERE ll.action = 'loggedin' AND ll.timecreated >= UNIX_TIMESTAMP('2020-03-20') GROUP BY DATE_FORMAT(FROM_UNIXTIME(ll.timecreated), '%D %M %Y') )B
     18USING(Date)
     19JOIN
     20(
     21SELECT
     22COUNT(lll.action) AS 'NoOfActions',DATE_FORMAT(FROM_UNIXTIME(lll.timecreated), '%D %M %Y') AS 'Date'
     23FROM prefix_logstore_standard_log lll
     24WHERE lll.timecreated >= UNIX_TIMESTAMP('2020-03-20') GROUP BY DATE_FORMAT(FROM_UNIXTIME(lll.timecreated), '%D %M %Y')
     25)C USING(Date)
     26}}}
     27
     28And the video guide https://youtu.be/w1H9bVvHZok
     29
     30'''Credits:'''
     31
     32Iroshini Ratnapala, University of Peradeniya
     33
     34Buddhika Godakuru, University of Kelaniya
     35
     36Hasmi AJM, South Eastern University
     37
     38
     39
     40
     41
     42