Hotfix release available: 2025-05-14b "Librarian".
upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian".
upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian".
upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos".
upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos".
upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos".
upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum".
upgrade now! [54.2] (what's this?)
moodle-requete-fusion
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| moodle-requete-fusion [2024/02/13 13:33] – created 195.221.243.132 | moodle-requete-fusion [2024/02/13 15:02] (current) – 195.221.243.132 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| Cours sans enseignants | Cours sans enseignants | ||
| < | < | ||
| - | SELECT | + | SELECT |
| + | FROM mdl_role_assignments | ||
| + | INNER JOIN mdl_context ON mdl_role_assignments.contextid = mdl_context.id | ||
| + | WHERE mdl_role_assignments.roleid = 3 AND mdl_context.contextlevel = 50 | ||
| + | AND mdl_context.instanceid = c.id) = 0 ORDER BY c.timemodified ASC; | ||
| </ | </ | ||
| + | < | ||
| + | SELECT c.id, | ||
| + | FROM mdl_role_assignments | ||
| + | INNER JOIN mdl_context ON mdl_role_assignments.contextid = mdl_context.id | ||
| + | WHERE mdl_role_assignments.roleid = 3 AND mdl_context.contextlevel = 50 | ||
| + | AND mdl_context.instanceid = c.id) = 0 ORDER BY c.timemodified ASC | ||
| + | INTO OUTFILE '/ | ||
| + | FIELDS ENCLOSED BY '' | ||
| + | TERMINATED BY ' | ||
| + | ESCAPED BY '"' | ||
| + | LINES TERMINATED BY ' | ||
| + | </ | ||
| + | |||
| + | Cours sans participants | ||
| + | < | ||
| + | SELECT c.id, | ||
| + | FROM mdl_course AS c | ||
| + | WHERE id NOT IN (SELECT mdl_context.instanceid FROM mdl_role_assignments, | ||
| + | AND (mdl_role_assignments.roleid = 3 OR mdl_role_assignments.roleid = 4 OR mdl_role_assignments.roleid = 5) GROUP BY mdl_context.instanceid) ORDER BY timemodified ASC; | ||
| + | </ | ||
| + | < | ||
| + | SELECT c.id, | ||
| + | FROM mdl_course AS c | ||
| + | WHERE id NOT IN (SELECT mdl_context.instanceid FROM mdl_role_assignments, | ||
| + | AND (mdl_role_assignments.roleid = 3 OR mdl_role_assignments.roleid = 4 OR mdl_role_assignments.roleid = 5) GROUP BY mdl_context.instanceid) ORDER BY timemodified ASC | ||
| + | INTO OUTFILE '/ | ||
| + | FIELDS ENCLOSED BY '' | ||
| + | TERMINATED BY ' | ||
| + | ESCAPED BY '"' | ||
| + | LINES TERMINATED BY ' | ||
| + | </ | ||
| + | |||
moodle-requete-fusion.1707831180.txt.gz · Last modified: 2024/02/13 13:33 by 195.221.243.132