vfp 统计满足条件的个数

2024-12-18 05:40:30
推荐回答(2个)
回答1:

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

回答2:

sele bj,count(yw),count(sx) from cj where yw>=90 and sx>=90 group by bj