查询前10个 不同customerid中ev最大值的sql语句
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
select top 10 customerid, max(ev) from table group by customerid
select a.ZuiBigValue from
(
select top 10 customerid, max(ev) as ZuiBigValue from table group by customerid
) as a