SQL中遇到多条相同内容只取一条的实现

例如出现BID为1673的两条重复数据,要第一条

select * from
(select no=row_number() over(partition by Bid order by getdate()),* from BidWinningNotice) t
where no=1 AND SID=238 AND BWMType=1

原文地址:https://www.cnblogs.com/yf2011/p/5055005.html