关于数据库的问题,希望能有大佬帮我看看

weixin_45151993 2019-06-30 03:32:10
一张score表,有class number name maths chinese 问题是: 人数小于20的班级的数学成绩 两个条件,班级人数小于20和他们的所有数学成绩
...全文
38 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_45151993 2019-06-30
  • 打赏
  • 举报
回复
引用 1 楼 唐诗三百首的回复:

select name,maths
from score
where class in(select class
from score
group by class
having count(1)<20)
谢谢大佬,分咋给你哈
唐诗三百首 2019-06-30
  • 打赏
  • 举报
回复

select name,maths
from score
where class in(select class
from score
group by class
having count(1)<20)

34,575

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧