select 商品名, 商品名称, count(*) as 商品总数量, sum(进价) as 总进价, sum(买价) as 总买价  from 统计表,商品表 where 商品名 like 'A%' and 买价-进价 > 10 group by 商品名, 商品名称