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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQlL-SERVER 2000's SQL 1

Status
Not open for further replies.

kingz2000

Programmer
May 28, 2002
304
DE

Hi,

I know with some SQL it is possible to find the top 5 from a list via the function 'top'. How can find the top 5 results ,say, using SQL-SERVER 2000??

ie SELECT TOP5(X) FROM TABLE_A ?????????

thanks for any help.

Kingz
 
Code:
SELECT TOP 5 * FROM Table_A ORDER BY ?????
You must have ORDER BY clause.

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top