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
Why use “pivot” in sql server?
What is open database communication (odbc)?
What is change tracking in sql server?
Mention the 3 ways to get a count of the number of records in a table.
What is primary key, unique key, and foreign key?
What is GUID in sql server?
What is multi-statement table-value user-defined function?
What is the difference between varchar and nvarchar datatypes?
When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?
Explain different types of BACKUPs avaialabe in SQL Server? Given a particular scenario, how would you go about choosing a backup plan?
Is it possible to update the views? If yes, how, if not, why?
Can you explain powershell included in sql server 2008?
What is read committed?
How do I find the transaction log size in sql server?
What does it mean to invest in the index?