H21
GPA by Parental Education Attainment
Institutional Research is preparing the equity section of the accreditation self-study. The headline table is academic performance banded by the highest education level either parent reached — the standard proxy for educational capital, and the field the first-generation flag is derived from. It is stored on the person record as dbo.ods_person.parent_1_educ, with a matching description in parent_1_educ_desc. The six codes are HS, SOMEC, ASSOC, BACH, MAST and DOCT, and 14 of the 220 people on file declined to report, leaving the column NULL — 9 of those 14 are students, so that is the size of the band you will see.
For every band, report the label, an explicit ordinal rank, the number of students in it, how many of those have a GPA on file, the average GPA to three decimals, the band's gap against the institution-wide average GPA, and how many students in the band are flagged first-generation. Restrict to people in the student role by joining dbo.ods_students, and take GPA from dbo.ods_stu_acad_levels.stpr_gpa, which is one row per student.
Three traps are deliberate. The band codes do not sort into attainment order alphabetically — 'ASSOC' before 'BACH' before 'DOCT' before 'HS' is meaningless — so you must build an ordinal sort key. Students who declined to report are a reporting category of their own and must appear as their own band, last, not be dropped. And the institution-wide average has to be computed across all students at row grain, which is not something you can write as a window function alongside a GROUP BY.
Hardods_studentsods_personods_stu_acad_levels