wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records

Answer Posted / krishna sandeep

select top 3 <column_name> from ,table_name> order by
<column_name> desc

this will work.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to count groups returned with the group by clause in ms sql server?

562


explain how to create a new schema in a database? : Sql server database administration

584


Explain how many types of relationship?

577


Which tcl commands are available on the sql server?

607


What is for xml in sql server?

544






How can you insert values in multiple rows using one Insert statement?

621


What is de-normalization and what are some of the examples of it?

539


How many categories of functions based their return modes?

598


What is the data type of time?

521


What is the New in SQL server 2008?

583


Explain the disadvantages of cursors?

594


Explain the purpose of indexes?

548


How to optimize stored procedure optimization?

519


what are the different stages of Report Processing?

97


What is the meaning of resultset type_scroll_insensitive?

565