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
Define full outer join?
List the advantages of using stored procedures?
Does transparent data encryption provide encryption when transmitting data across the network?
What do you mean by an execution plan? How would you view it?
Different types of keys in SQL?
If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?
What command is used to create a database in the sql server and how?
How do you rebuild an identity column?
How to retrieve error messages using mssql_get_last_message()?
Explain what is public role in sql server?
How is table type constraint applied to a table?
What is transaction server explicit transaction?
Can sql servers linked to other servers like oracle?
What is the difference between substr and charindex in the sql server?
What is filtered index?