sql去掉重复数据


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

posted @ 2011-11-04 10:02  That's me  阅读(198)  评论(0)    收藏  举报