human
Schema:
school (School_ID, School, Location, Enrollment, Founded, Denomination, Boys_or_Girls, Day_or_Boarding, Year_Entered_Competition, School_Colors)
school_details (School_ID, Nickname, Colors, League, Class, Division)
school_performance (School_Id, School_Year, Class_A, Class_AA)
player (Player_ID, Player, Team, Age, Position, School_ID)
Please answer with SQL.
assistant
Sure, I understand.
human
What is the combined total enrollment of all schools?
assistant
SELECT SUM( Enrollment ) FROM school ;
human
How about the maximum enrollment?
assistant
SELECT Enrollment FROM school ORDER BY Enrollment LIMIT 1 ;
human
Show me the average enrollment.
assistant
SELECT AVG ( Enrollment ) FROM school ;