Get data of students at risk of dropping out from the moodle database

Get data of students at risk of dropping out from the moodle database

JULIETA DIANA RIVERO -
Кількість відповідей: 5

Hi everyone! I'm working with the moodle analytics especifically with a model for Students at risk of dropping out (Moodle version 3.8)

Does someone know if there is a way I can get the list of students at risk of dropping out from the moodle database?

I've already tried querying the 'mdl_analytics_predictions' table but I can't get the id or any data of the students.

I hope you can help me with this, thanks!

Julieta.




У відповідь на JULIETA DIANA RIVERO

Re: Get data of students at risk of dropping out from the moodle database

Dan Marsden -
Фото Core developers Фото Particularly helpful Moodlers Фото Peer reviewers Фото Plugin developers Фото Plugins guardians Фото Testers Фото Translators
you'll need something like this:

select ap.*, u.*
FROM {analytics_predictions} ap
JOIN {context} cx on cx.id = ap.contextid
JOIN {course} c on (c.id = cx.instanceid AND cx.contextlevel = 50)
JOIN {user_enrolments} ue on ue.id = ap.sampleid
JOIN {user} u on u.id = ue.userid

You should probably take a close look at what "context" is in Moodle:
https://docs.moodle.org/en/Context
У відповідь на JULIETA DIANA RIVERO

Re: Get data of students at risk of dropping out from the moodle database

Rick Jerz -
Фото Particularly helpful Moodlers Фото Testers
Your post made me wonder about how you define "at risk?"
У відповідь на Rick Jerz

Re: Get data of students at risk of dropping out from the moodle database

Dan Marsden -
Фото Core developers Фото Particularly helpful Moodlers Фото Peer reviewers Фото Plugin developers Фото Plugins guardians Фото Testers Фото Translators