Viewing post 1 (of 1 total)
select * from (select ROW_NUMBER()over(partition by docname order by priority,startdate desc) rownumber,* from #t)a where rownumber=1
August 30, 2017 at 9:16 am
#1957485