create proc p_销售报表
@商品号 int
as
select 商品号,销售数量=sum(销售数量),销售单价=max(销售单价),销售金额=sum(销售金额) 
from 销售报表 where 商品号=@商品号
group by 商品号
go