1.union
2.求两个结果的交集 intersect
3.求A-B,选秀心里学但未选秀演讲与口才的!
select *
from Uman WHERE 学生编号 IN
(
select 学生编号 from Ucourse_score
where 选修课='心理学'
)
except
select *
from Uman WHERE 学生编号 IN
(
select 学生编号 from Ucourse_score
where 选修课='演讲与口才'
)
order by 学生编号