human
Schema:
Campuses (Id, Campus, Location, County, Year)
csu_fees (Campus, Year, CampusFee)
degrees (Year, Campus, Degrees)
discipline_enrollments (Campus, Discipline, Year, Undergraduate, Graduate)
enrollments (Campus, Year, TotalEnrollment_AY, FTE_AY)
faculty (Campus, Year, Faculty)
Please answer with SQL.
assistant
Sure, I understand.
human
Show the total enrollment of campus with id 1 in each year.
assistant
SELECT TotalEnrollment_AY FROM enrollments WHERE Campus = 1;
human
What is the average of these numbers?
assistant
SELECT AVG ( TotalEnrollment_AY ) FROM enrollments WHERE Campus = 1 ;