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

Answer Posted / priya

select top 3 from <table name > where < specify any
condition> order by <column ID> desc

Is This Answer Correct ?    15 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exporting and importing utility?

774


How do you test your database? : sql server database administration

715


How to locate and take substrings with charindex() and substring() functions?

697


How to create a simple stored procedure in ms sql server?

704


what are the three command line utilities and what are their primary functions?

119






Give main differences between "Truncate" and "Delete".

773


What are differences in between sql server 2012 and sql server 2016?

751


How is a full-text index updated?

700


Write a program to fetch first 10 records from a file?

759


What do you understand by integration services in sql server?

718


Difference between group by clause and having clause in SQL?

738


Explain having clause and where clause?

786


What is a mixed extent?

756


Explain cursor as data base object?

767


What is perspective, have you ever created perspective? : sql server analysis services, ssas

671