How many hours do the students spend studying in each department?
SELECT sum(stu_hrs) ,  dept_code FROM student GROUP BY dept_code
hours students spend studying = SUM(stu_hrs); in each department refers to GROUP BY dept_code;