标签: sql sql-server
SELECT DateErrored FROM (SELECT Category, ROW_NUMBER (Partition by dateerrored ORDER BY category DESC)AS Row FROM AspErrors) AS LogWithRowNumbers WHERE Row >= 1 AND Row <= 10
答案 0 :(得分:9)
将ROW_NUMBER更改为ROW_NUMBER() OVER。
ROW_NUMBER
ROW_NUMBER() OVER
Link to documentation