Aug 13, 2008 #1 kingz2000 Programmer Joined May 28, 2002 Messages 304 Location 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
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
Aug 13, 2008 1 #2 bborissov Programmer Joined May 3, 2005 Messages 5,167 Location BG Code: SELECT TOP 5 * FROM Table_A ORDER BY ????? You must have ORDER BY clause. Borislav Borissov VFP9 SP2, SQL Server 2000/2005. Upvote 0 Downvote
Code: SELECT TOP 5 * FROM Table_A ORDER BY ????? You must have ORDER BY clause. Borislav Borissov VFP9 SP2, SQL Server 2000/2005.
Aug 13, 2008 Thread starter #3 kingz2000 Programmer Joined May 28, 2002 Messages 304 Location DE thank you! Upvote 0 Downvote