select Sno,Sname,Ssex from Student a(nolock) where a.Sno not in (select y.Sno from (select * from Student where Sdept>=80) x right join SC y on x.Sno=y.Sno where x.Sno is null)
追问
看不懂
㈠朵烟熏的埖
2024-11-26 03:53:10
Insert into S(SNO,SNAME,SEX) Select Sno,sname,ssex From student t1 Where not exists(select * From sc t2 Where t1.sno=t2.sno and grade>=80)