commit
2f013d1bda
|
@ -401,7 +401,7 @@
|
||||||
);
|
);
|
||||||
|
|
||||||
-- 查询选了两门以上的课程的学生姓名(子查询/分组条件/集合运算)
|
-- 查询选了两门以上的课程的学生姓名(子查询/分组条件/集合运算)
|
||||||
select stuname from tb_student where stuid=(
|
select stuname from tb_student where stuid=any(
|
||||||
select stuid from tb_score group by stuid having count(stuid)>2
|
select stuid from tb_score group by stuid having count(stuid)>2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue