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
 Transact-SQL (2000)
 Single return

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-03-07 : 09:05:18
Trever writes "Hi, How do I search a table and only return one row to work with.
For e.g select * from account, but instead of it showing 100 results it would just show the first it found.

Thanks"

Nazim
A custom title

1408 Posts

Posted - 2002-03-07 : 09:09:08
Try using select

eg:
select top 1 * from tablename

HTH

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

- Advertisement -