Database: college_2
Question: Find the total credits of courses provided by different department.
SQL:
SELECT sum(credits) ,  dept_name FROM course GROUP BY dept_name