Find the number of departments in each school.
CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR)
SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code
### Context: CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR) ### Question: Find the number of departments in each school. ### Answer: SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code