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


Please Help Members By Posting Answers For Below Questions

Do you know what is replace and stuff function in sql server?

469


What are the types of resultset?

537


Explain what are various ways to enhance the ssrs report?

572


What are the different types of sub-queries?

600


How do I know if localdb is running?

519






Explain multiserver query

559


Name some of the open source software that you can use in alternative to SSR?

105


How do I edit a procedure in sql server?

553


tell me what is blocking and how would you troubleshoot it? : Sql server database administration

489


What does it mean if @@cursor_row returns a negative number?

575


What is data compression? : sql server database administration

549


How to enter unicode character string literals in ms sql server?

579


What are the rules to use the rowguidcol property to define a globally unique identifier column?

593


How would you choose between a clustered and a non-clustered index?

547


What is a virtual table in sql?

550