統計出每一個學生有多少門課分數大於90分

姓名 分數 課程 name score course 1 math 80 1 english 90 2 math 81 2 english 91 3 math 85 3 english 95 1 chinese 92web SELECT stuid, sum(case when score>=90 then 1 else 0 end) FROM score GROUP BY stuid
相關文章
相關標籤/搜索