标签: sql sql-server
要获取汇总的SQL查询,如下结果输出
答案 0 :(得分:1)
SELECT item, SUM(SalePrice) as SalePrice, date FROM PurchasedProducts WHERE date = '2019-04-28' GROUP BY item, date
尝试一下。应该可以。