发布网友 发布时间:2022-04-11 11:34
共1个回答
热心网友 时间:2022-04-11 13:04
select tid id,sum(tct) `count` from (select userID tid,count(*) tct from t2 where userid in (select * from t1 where classNum=1)2 union all select leanID tid,count(*) tct from t2 where leanID in (select * from t1 where classNum=2)) t group by tid