Find the max, average, and minimum gpa of all students in each department.
CREATE TABLE student (dept_code VARCHAR, stu_gpa INTEGER)
SELECT MAX(stu_gpa), AVG(stu_gpa), MIN(stu_gpa), dept_code FROM student GROUP BY dept_code
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE student (dept_code VARCHAR, stu_gpa INTEGER) Question: Find the max, average, and minimum gpa of all students in each department. [/INST] SELECT MAX(stu_gpa), AVG(stu_gpa), MIN(stu_gpa), dept_code FROM student GROUP BY dept_code </s>