Find the total number of hours have done for all students in each department.
SELECT sum(stu_hrs) ,  dept_code FROM student GROUP BY dept_code
total number of hours done for all students in each department refers to SUM(stu_hrs); grouped by department refers to GROUP BY dept_code;