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
Which are new data types introduced in sql server 2008?
When would you use it?
What is the difference between truncate and delete commands?
What is the Main Difference between ACCESS and SQL SERVER?
How do I install only the client tools of sql server 2000?
What is a join in sql?
What is meant by datasource?
can a table be moved to different filegroup? : Sql server administration
What is filter index?
Explain throw statement in sql server 2008?
what is the sql equivaent of the dataset relation object ?
What are parameterized reports? What are cascading parameters in ssrs reports?
What is difference between after and before?
Explain what is lock escalation and what is its purpose?
What are the restraints imposed on the table design by a merge replication?