Scenario
The IR office needs a simple headcount of registered students per term to track enrollment trends over the past several years. Count only students whose term record is Registered (sttr_current_status = 'R'); students who withdrew (W) or are on leave (L) that term are not part of the headcount.
Expected output
9 rows, one per term from 2023FA to 2027FA, with the number of registered students in each. Check your filter against Fall 2025: 2025FA has 118 registered students, or 150 if withdrawn and on-leave records are counted too. Row order is not graded, but list the terms chronologically: term codes do not sort in calendar order ('2024FA' sorts before '2024SP'), so order by the term's start date in ods_terms.
sttr_termheadcount
Tables
ods_student_terms ods_terms