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 backup SQL Server Reporting Services ?
1 01 101 01010
What is the purpose of data source?
What is a table called, if it has neither cluster nor non-cluster index? What is it used for?
How to return the date part only from a sql server datetime datatype?
What is a dataset and what are the different types of datasets?
What is the difference between primary key and unique constraints?
What are the new security features added in sql server 2012? : sql server security
How can we get count of the number of records in a table?
Explain magic tables in sql server?
What is user-defined scalar function?
Can we insert data into view sql server?
What are sql servers used for?
Please differentiate between a local and a global temporary table?
What types of replication are supported in sql server?