Closed txoof closed 11 months ago
Test if this will work as a PowerQuery
SELECT distinct
-- Students.LastFirst,
'course offering' as "type",
'UPDATE' as "action",
Gen.Name AS Activity,
PS_CustomFields.GetStudentsCF(Students.ID,Gen.Value) AS
Enrolled_in_Activity
-- STUDENTS.STUDENT_NUMBER as child_code,
/* REGEXP_REPLACE(U_STUDENTSUSERFIELDS.EMAILSTUDENT, '(^.*)(@.*)',
'\1') as "child_code", */
-- 'Learner' as "role_name"
FROM
Students
JOIN Gen ON Gen.cat='activity'
WHERE
Students.Enroll_Status = 0
and STUDENTS.GRADE_LEVEL >=5
AND PS_CustomFields.GetStudentsCF(Students.ID,Gen.Value) IS NOT NULL
AND PS_CustomFields.GetStudentsCF(Students.ID,Gen.Value) >=1
AND Gen.Name LIKE '%Athletics - %'
ORDER BY
-- Students.LastFirst,
Gen.Name
Query works -- need to resolve way to set term number
May not need to worry about terms -- could just use a term called "Athletics"
Check in with Athletics department regarding this.
No one wants this. No one needs this. Closing.
Add integration from SIS for Athletics