求大神帮忙小白解决一个sql吧!谢谢
sql吧
全部回复
仅看楼主
level 1
蓝色的冰7
楼主
请写出最少有三门科目大于90分的学生的所有成绩的SQL?这个该怎么写呢?
我现在只能得到这样的结果
求各位大神帮帮忙吧!
2019年04月19日 12点04分
1
level 1
蓝色的冰7
楼主
已解决
Select name,grade from roster where name=(Select name from roster where grade>90 group by name having count(*)>2)
2019年04月19日 13点04分
2
level 10
冈仁波齐_angel
This is the most basic.
2019年04月19日 14点04分
3
level 3
520love472
select name,count(type) from roster where grade >90 group by name having count(type )>=3
2019年10月18日 07点10分
4
1