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
Can we insert data into view sql server?
Is oracle faster than sql server?
What structure can you implement for the database to speed up table reads?
What is a cursor, index in sql?
How to list all triggers in the database with sys.triggers in ms sql server?
Explain primary key and foreign key constraints?
Do you know how to implement service broker?
How can you start sql server in different modes?
How do I uninstall sql server 2014?
What is the difference between a primary key and a unique key? Are they the same?
How to bind a view to the schema of the underlying tables?
What is the difference between SQL notification and SQL invalidation?
Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?
Which data type columns are the best candidates for full-text indexing?
How to change the name of a database user?