select sum(数量) from 表A where 条件
假设你数量是B2扩展的那f(x)=sum(B2)
是这个意思吗
select sum(数量) from a表 where 序号='002'
and ca_date >='2020-01-01'