Find the number of different departments in each school whose number of different departments is less than 5.
create table department (school_code varchar, dept_name varchar, PRIMARY KEY (school_code))
select count(distinct dept_name), school_code from department group by school_code having count(distinct dept_name) < 5