Plain English interpretation

In Plain English

"Give me the campus email, name, and group assignment for every active instructor and enrolled student in the given term, excluding Continuing Education, so we can bulk-provision their software accounts."

Overview

This is a user provisioning query — it pulls a list of people (faculty and students) who need accounts in some system (likely Adobe Creative Cloud, given the column names like "Product Configurations" and "Developer Access"). It outputs a standardized CSV-style format for bulk user import.

The query is built from 6 UNION'd SELECT blocks, all returning the same 14 columns.


Structure at a Glance

Instructors (Undergrad, non-TEAM)    ─┐
Instructors (Undergrad, TEAM)         │
Instructors (Grad, non-TEAM)          ├─ UNION all → ORDER BY Last Name
Instructors (Grad, TEAM)              │
Students (Undergrad)                  │
Students (Grad)                      ─┘

The Two Populations

Faculty blocks (4 queries)

Student blocks (2 queries)