select top 10 Id,proName,ProPrice from yxs_orderproduct where proname in(select proname from yxs_orderproduct group by proname having count(proname)=1) order by (proPrice*ProNum) desc
转载于:https://www.cnblogs.com/zhanghonjiang2011/archive/2011/11/04/2235705.html