wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records
Answer Posted / grace
SELECT TOP 3 * FROM <TABLE_NAME> WHERE <CONDITION> ORDER BY
<COLUMN_NAME> DESC
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How to get the query of a table in sql server?
What are the different Authentication modes in SQL Server and how can you change authentication mode?
What is the chart in report?
Can you name a few encryption mechanisms in sql server?
Explain user defined views?
What is a linked server in sql server?
What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors?
How display code or Text of Stored Procedure using Sql query in Sql Server ?
What are the essential components of sql server service broker?
How network traffic be reduced by using the stored procedure?
Differentiate between sql temp table vs table variable?
What is the standby server?
What is user-defined scalar function?
Explain database normalization?
What is pivot and unpivot?