แต่ละโรงเรียนมีกี่แผนก แสดงแผนภูมิแท่ง และคุณสามารถเรียงตามแกน x จากสูงไปต่ำได้หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many departments are in each school Show bar chart, and could you list by the x-axis from high to low?It is not neccessary to use all the tables.
 STUDENT:  STU_NUM [ int]  STU_LNAME [ varchar(15)]  STU_FNAME [ varchar(15)]  STU_INIT [ varchar(1)]  STU_DOB [ datetime]  STU_HRS [ int]  STU_CLASS [ varchar(2)]  STU_GPA [ float(8)]  STU_TRANSFER [ numeric]  DEPT_CODE [ varchar(18)]  STU_PHONE [ varchar(4)]  PROF_NUM [ int] 
SELECT SCHOOL_CODE, COUNT(DISTINCT DEPT_NAME) FROM DEPARTMENT ORDER BY SCHOOL_CODE DESC