【Database】SQL经典面试题

1、用一条SQL 语句 查询出每门课都大于80 分的学生姓名。

A: select distinct name from table where name not in (select distinct name from table where fenshu<=80)
B: select name from table group by name having min(fenshu)>80

猜你喜欢

转载自blog.csdn.net/entrypio/article/details/83996392