发布网友 发布时间:2022-04-11 05:44
共1个回答
热心网友 时间:2022-04-11 07:13
12.
select distinct s.sn, c.cn, tTemp.tn from sc
left join s on s.sno = sc.sno
left join c on c.cno = sc.cno
left join --课程对应的老师
(select t.dept, t.tn, tc.cno from tc
left join t on tc.tno = t.tno) as tcTemp on tcTemp.cno = sc.cno
where s.dept = tTemp.dept