SQL 练习25

  • 查询同名学生名单,并统计同名人数
SELECT sname,COUNT(sname) 同名人数  from Student GROUP BY sname HAVING COUNT(sname)>1

image

posted @ 2021-08-20 16:37  弩哥++  阅读(28)  评论(0编辑  收藏  举报