22,209
社区成员
发帖
与我相关
我的任务
分享
select E.*
from eosoperator E join
(select distinct studentid
from student B join (select classid from class where ishistoryclass=0) C on B.classid=C.classid) T
on E.operatorid=T.studentid
--try
select a.*
from eosoperator a
inner join
(select studentid from student b inner join classwhere c on b.classid = c.classid where c.ishistoryclass=0 group by studentid) as t
on a.operatorid = t.studentid
select a.*
from eosoperator a
inner join student b on a.operatorid = b.studentid
inner join classwhere c on b.classid = c.classid
where c.ishistoryclass=0
select a.* from eosoperator a,student b,class c where a.operatorid=b.studentid and b.classid=c.classid
and c.ishistoryclass=0
select
*
from
eosoperator
where
exists(select 1 from student where student=eosoperator.operatorid
exists(select 1 from class where ishistoryclass=0 and classid=student.classid))