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
Can foreign key be duplicate?
What is difference between line feed ( ) and carriage return ( )?
after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?
What is the purpose of linked server configuration in sql server?
Does full backup break log chain?
Explain ms sql server reporting services vs crystal reports?
What is set nocount on and what is set nocount off?
What have included columns when we talk about sql server indexing?
what is the difference between Delete and Truncate command in SQL
You have modified 100 store procedures and want to replicate these changes from development to prodution, and production can have users using the Server/DB, how would you replicate without causing issues?
Explain trigger and trigger types?
How to include date and time values in sql statements?
What type of Index will get created after executing the above statement?
What is rtm version in sql server?
What is indexing in sql server with example?