Reputation:
I am looking for something like rownum
Upvotes: 1
Views: 9779
Reputation: 91376
You can use TOP, for example:
SELECT Top 10 col FROM Table ORDER BY col2
Note that this will return more than 10 records if col2 has duplicates.
Upvotes: 2