Sorry, it was K6 shows both groups but all the details for Maths and OffCampus only belong to group STU... But your explanation above clarifies the relationship.
Two new queries (mainly naming conventions)
Q1) QueryBy_CourseGroup_and_Type combines Physics and Chemistry
Q2) QueryBy_Course_and_Type separately Physics and Chemistry
Two new functions (mainly naming conventions)
F1) GetGroupIDNameCourseGroupType for use in Q1 above
F2) GetGroupIDNameCourseType for use in Q2 above