select t.bj,t.语文,b.数学 from ;
(select bj,count(yw) as 语文 from cj where yw > 90 group by bj) t ;
left join ;
(select bj,count(sx) as 数学 from cj where sx > 90 group by bj) b ;
on t.bj = b.bj
select t.bj,t.语文,b.数学 from ;
(select bj,count(yw) as 语文 from cj where yw > 90 group by bj) t ;
left join ;
(select bj,count(sx) as 数学 from cj where sx > 90 group by bj) b ;
on t.bj = b.bj