如何在包含COUNT,MIN和MAX的查询中SUM两个(所有记录的)字段

时间:2014-11-26 12:59:15

标签: mysql

select count(productid) as totalproducts, min(price+shippingtouk) as lowerprice, max(price+shippingtouk) as upperprice  from tblproducts

有没有办法计算表格中所有记录的价格和出货量字段的总和?

0 个答案:

没有答案