Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get top 100 records?
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01148703
Message ID:
01148727
Views:
17
I don't normally use rowcount, but i think this will work:

set rowcount 100
select age, name from persons order by age desc


>I need a way to get the top 100 records without using LIMIT or TOP...
>
>something like this:
>create table person(name varchar(30), age int);
>
>...and I need just the 100 oldest people... anyone know how to do this?
>
>Thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform