Table 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.
SQL: SELECT SUM(stu_hrs), dept_code FROM student GROUP BY dept_code