wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records
Answer Posted / arun kumar k s
drop table #temp select identity(int,1,1) as SlNo, * into
#temp from TABLE_NAME select top 3 * from #temp order by
SlNo desc
arun_4454@yahoo.co.in
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is your recommendation for a query running very slow? : sql server database administration
What is the difference between set and select?
What is SQL Azure Federations?
What are the components of sql server service broker?
What are various limitations of the views?
What is the difference between inner join and equi join?
How to select some specific columns from a table in a query in ms sql server?
What is database mirroring?
How do we synchronize On-Premise SQL server with SQL Azure?
What is difference between order by and group by?
Explain the properties of sub-query in sql server?
how to define testing of network layers? : Sql server database administration
What is coalesce in sql server?
You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?
What is use of except clause?