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)
 query a table

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-04-17 : 09:36:37
Saima writes "how can i select only first ten rows of a table?"

Nazim
A custom title

1408 Posts

Posted - 2002-04-17 : 09:39:45
Saima , look at Top in booksonline.

therez a wonderful article written by graz on how to play with it on this site search for "Whats after top" in article search.

Coming to your questino
select top 10 * from tablename
order by columname --on which you want to sort

--------------------------------------------------------------
Go to Top of Page
   

- Advertisement -