Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select statement - return only 1 result

Status
Not open for further replies.

gio2888

Technical User
Oct 26, 2000
64
US
Is there any way to force a select statement to only return 1 row of results?

Thanks in advance
 
You can use
Code:
SELECT TOP 1 <column_list> ...
to ensure that only a single row is returned in the result set.

--Angel [rainbow]
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top