3、需要一张表,包括:每种产品的销售数量汇总。两列分别为:productid,total_quantity
select productid,sum(quantity) as total_quantity from [order details] group by productid
如何将这个表在asp中显示呢,表中既有产品名也有数量。我是菜鸟,可以帮帮我吗
3、需要一张表,包括:每种产品的销售数量汇总。两列分别为:productid,total_quantity
select productid,sum(quantity) as total_quantity from [order details] group by productid
如何将这个表在asp中显示呢,表中既有产品名也有数量。我是菜鸟,可以帮帮我吗