Moodle Algorithm 25-07-2024
Moodle Algorithm 25-07-2024
[SubjectwiseRollList_CourseEnrollment_Batchlist]
Procedure Initialization
o Start.
INSERT Operations:
Same column selections, joins, and where conditions, but source table change
AddDropDetails, AcademicRegisteredCourses,
CourseRegistrationDetailsNew(Core), CourseRegistrationDetailsNew (Elec)
instead of CourseRegistrationDetails.
o Select Columns:
UserName: LOWER(C.RollNo)
Password: ''
FirstName: LOWER(C.RollNo)
LastName: D.FirstName
Email: CONCAT(LOWER(C.RollNo), '@smail.iitm.ac.in')
Auth: 'ldap'
Course: CASE
When C.BatchNo is not null: Concatenate course
number, batch number, and period.
Else: Concatenate course number and period.
CourseId: A.CourseId
Role: 'student'
AddDrop: '1'
Category: A.Period
SubCategory: CONCAT(SUBSTRING(B.CourseNo, 1, 2), '-',
A.Period)
Status: '1'
UpdatedOn: DATEDIFF(s, '1970-01-01 00:00:00',
GETUTCDATE())
MoodleStatus: '0'
MoodleUpdate: ''
LastUpdatedOn: GETDATE()
Comments: ''
From Tables:
CoursesInSlot (A)
CourseMaster (B)
StudentBatchRollNoDetails (C)
StudentMaster (D)
CourseRegistrationDetails (E) (AddDropDetails,
AcademicRegisteredCourses, CourseRegistrationDetailsNew)
Conditions:
Drop Operations:
Summary
The student will be moved to Moodle once course registration approval is done
with course like AE9999: JUL-NOV 2024
After that the batch created for the each student for each course
Once batch created for the student they will move to Moodle with course like
AE9999_1:JUL-NOV 2024
we insert the student will batch and drop the student from Moodle where
batch is created against the student