Mar 28, 2001 #1 riya Programmer Mar 1, 2001 12 IN hi all, This is a very urgent requirement.I need to fetch the last 10 rows of a table data.(no temporary tables must be used). Thanx in advance
hi all, This is a very urgent requirement.I need to fetch the last 10 rows of a table data.(no temporary tables must be used). Thanx in advance
Mar 29, 2001 #2 Qaroven Programmer Nov 14, 2000 74 AU Assuming you want the last 10 records based on the value of field1 .. select top 10 * from table1 order by field1 desc Ben +61 403 395 052 Upvote 0 Downvote
Assuming you want the last 10 records based on the value of field1 .. select top 10 * from table1 order by field1 desc Ben +61 403 395 052
Mar 29, 2001 #3 Andel Programmer Feb 15, 2001 366 US if you're using sql6.5, then use rowcount. set rowcount 10 select * from names order by field1 desc Andel andelbarroga@hotmail.com http://andyb.8m.com Upvote 0 Downvote
if you're using sql6.5, then use rowcount. set rowcount 10 select * from names order by field1 desc Andel andelbarroga@hotmail.com http://andyb.8m.com