Find the total number of hours have done for all students in each department.
CREATE TABLE student (dept_code VARCHAR, stu_hrs INTEGER)
SELECT SUM(stu_hrs), 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_hrs INTEGER) Question: Find the total number of hours have done for all students in each department. [/INST] SELECT SUM(stu_hrs), dept_code FROM student GROUP BY dept_code </s>