Oct 30, 2002 #1 saw15 Technical User Jan 24, 2001 468 US How do you reverse this: select top 300 * from table But instead of the top 300, I want the last 300. The field is not an integer so I can't use a subtraction calculation. Any help is appreciated.
How do you reverse this: select top 300 * from table But instead of the top 300, I want the last 300. The field is not an integer so I can't use a subtraction calculation. Any help is appreciated.
Oct 30, 2002 #2 sunila7 Technical User Apr 11, 2001 1,087 US Hi, If ur field is ordered by say field1 select top 300 * from table order by field1 ASC then select top 300 * from table order by field1 desc will give u the last records to appear for the order by criteria. Sunil Upvote 0 Downvote
Hi, If ur field is ordered by say field1 select top 300 * from table order by field1 ASC then select top 300 * from table order by field1 desc will give u the last records to appear for the order by criteria. Sunil
Oct 31, 2002 #3 SQLBill MIS May 29, 2001 7,777 US Sunil is correct, but you only need to run the second script (the one with the ORDER BY column DESC), not the first one. -SQLBill Upvote 0 Downvote
Sunil is correct, but you only need to run the second script (the one with the ORDER BY column DESC), not the first one. -SQLBill