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


Please Help Members By Posting Answers For Below Questions

Tell me what is normalization? Explain different forms of normalization?

550


What are binary string data types in ms sql server?

658


What are the types of dml?

558


Can we use where clause in union?

599


List some case manipulation functions in sql?

599






What are the advantages of paper records?

559


What are the basic features of a trigger in ms sql server?

569


how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration

570


Do you know what is similarity and difference between truncate and delete in sql?

579


What are the limitations in ssrs on sql server express edition?

139


What are the new features introduced in SQL Server 2000 (or the latest release of SQL Server at the time of your interview)? What changed between the previous version of SQL Server and the current version?

591


What is database dimension? : sql server analysis services, ssas

626


What is attribute hierarchy? : sql server analysis services, ssas

524


Why we need sql server?

561


What the different components in replication and what is their use?

519