wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records
Answer Posted / kumar
select top 3 * from tablename
order by 1 desc
By
Kumar Junior Software Engineer
Is This Answer Correct ? | 13 Yes | 6 No |
Post New Answer View All Answers
Explain the difference between primary keys and foreign keys?
How to get a list of columns using the "sys.columns" view in ms sql server?
How do I completely remove sql server instance?
Why would you call update statistics?
Why I am getting "the microsoft .net framework 2.0 in not installed" message?
What is isolation levels?
How do you handle datasets larger than 50 gb?
How to connect Azure federated root database and apply federation in entity framework?
How to filter records of table in SQL SERVER?
Write the SQL query to drop, truncate and delete table.
What stored by the master?
What is failover clustering overview?
Write a SQL query to delete a table?
Explain the usage of floor function in sql server.
If a table does not have a unique index, can a cursor be opened on it?