Select 零件,sum(数量),count(*) as 批次总数
from 表 
where 日期 between '2003-8-1' and '2003-8-31'
group by 零件