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 get a list all databases on the sql server?
How do I create a stored procedure in sql server?
Why use “nolock” in sql server?
What is the maximum row of a size?
what is an index? : Sql server database administration
Does partitioning improve performance sql server?
How to find the source of a table in sql server?
How many types of subqueries are there in sql server?
Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?
How to create a local temporary stored procedure?
How do I find information about the install locations for the various instances running on a computer?
Explain in details security in SQL azure?
What is merge join?
Can you type more than one query in the query editor screen at the same time?
what is sql server? : Sql server database administration