Re: [SQL ] MS SQL 同个值 取时间最早的那个

楼主: jengting (~~)   2015-05-26 22:50:55
下面语法,请试看看
SELECT TOP (1) WITH TIES *
FROM Paper
ORDER BY ROW_NUMBER() OVER (PARTITION BY Col1 ORDER BY [Time])

Links booklink

Contact Us: admin [ a t ] ucptt.com