sql23专题

sql23(Leetcode2356每位教师所教授的科目种类的数量)

代码: # Write your MySQL query statement belowselect teacher_id,count(distinct(subject_id)) as cntfrom Teachergroup by teacher_id