How to select nth record from a table?

Answer Posted / veeresh kethari

select min(sal) from EMP where sal in(select top n sal from
EMP
order by SAL desc)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to test subquery results with the exists operator?

564


What is the difference between delete and truncate statements?

571


What are the different type of replication in sql server?

540


What do you mean by data manipulation language?

592


What is the user of Primary key?

579






What is the meaning of lock escalation and why/how to stop this? : sql server database administration

605


How to use copy and concatenate commands in SQL?

601


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

562


Explain few of the new features of sql server 2008 management studio

523


What is data source in connection string?

495


What are the types of dml?

558


Is null in sql server?

544


What is the difference between functions and stored procedures?

616


What is usually the first word in a sql query?

599


How to bind a view to the schema of the underlying tables?

587