wat will be the sql query to extract only last 3 records
from table supose table hving thousands for records
Answer Posted / teja
select * from employee where emp_id in
(select top 3 emp_id from employee order by emp_id DESC)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration
Can you index views?
How to connect a database with sql express.?
How to add more data to the testing table in ms sql server?
What is mapping schema?
What is sql server 2000 work load governor?
Which tcp/ip port does the sql server run on? How can it be changed?
what is dbcc? : Sql server database administration
What are the general features of sql server management studio? : sql server management studio
How many cores do I need for sql server 2016?
State the difference between local and global temporary tables?
Can you explain different types of locks in sql server?
Why truncate is ddl command?
What are the main differences between #temp tables and @table variables and which one is preferred?
Explain how dts is used to extract, transform and consolidate data?