wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records
Answer Posted / bobby
select * from table_name where <Primary key Column-
name> != all
(select top (@@rowcount-3) <Primary key Column-name> from
Table_name)
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How will you hide an attribute? : sql server analysis services, ssas
what are the steps you will take to improve performance of a poor performing query? : Sql server database administration
What is a schema in ms sql server 2005?
Explain about merge replications?
What is open database communication (odbc)?
What is the security model used in sql server 2005?
Why we need to use secondry database file? though, we can do same work using primary database file also.
Explain datetime2 data type in sal server 2008?
Explain about temporary stored procedure?
Other than truncate statement, which other command can by-pass the trigger on the tables?
Tell me the use of keyword with encryption. Create a store procedure with encryption?
What is service broker? : sql server database administration
What is Extended user-defined?
What is snapshot parameter in ssrs?
How can I change procedure name in sql server?