尝试写了一个sql语句 结果杯具了
select sum(dj*shl2) from (select dj, sum(shuliang) as shl2 from wp grou by spbh,spmc) where shl2>0原本想对一个sql查询的结果集 进行二次sql查询 但是无法通过
vfp 6 select dj, sum(shuliang) as shl2 from wp grou by spbh,spmc into curs a1 select sum(dj*shl2) from a1 where shl2>0