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
Will sql server 2005 allow you to reduce the size of a column?
Explain about remote stored procedure?
What stored by the msdb? : sql server database administration
how will add additional conditions in sql?
Can a table have 2 foreign keys?
How do I connect to sql server database?
Why do we need different type of parameter?
Can we use pragma autonomous_transaction in trigger?
in the physical file layout, where should the transaction log be stored in relation to the data file?
Can we add an identity column to decimal datatype?
What does ss stand for sexually?
Can you import Microsoft Excel data to SSRS?
How to replace given values with null using nullif()?
What is the difference between clustered and a non-clustered index?
What is replace and stuff function in sql server?