Task: Text to Code
Input (English): Step 1: find the summation of tot_cred of each value of dept_name in student table.
Step 2: find name, dept_name of student table ordered ascending by the results of step 1
Output (English): SELECT name , dept_name FROM student GROUP BY dept_name ORDER BY Sum ( tot_cred ) Asc