select top 3 sum(price*numcount) as total,name from xxxx group by name
------解决方案-------------------- datatable中order by实现 http://www.byywee.com/page/M0/S445/445562.html
------解决方案-------------------- select top 3 sum(price*num),name from xxx group by name order by sum(price*num) desc