Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 First n rows

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-12-04 : 09:11:54
Franck writes "Is there an easy way to get the first n rows of a sub query?"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2001-12-04 : 09:27:51
Does this work for you?

SELECT TOP 10 * FROM
(SELECT * FROM myTable ORDER BY myColumn) AS A


Go to Top of Page
   

- Advertisement -