Hello folks.
We are on 3.9.4.x and I noticed in a lot of courses, we have students enrolled in more than one method!
In other words, the student was enrolld in a course via more than one enrolment method (unusual, but possible).
see image attached.
How can I write an sql to clean this up and change all enrolment types who have either or all the courses' "database", "selfenrol" enrolment id and update it to their course's 'manual' enrolment id?
I believe i need to loop through them but don't know which tables I need to hit and update them.
thanks!