how to retrive only second row from table in sql server
2000?

Answer Posted / belson gnana pradeep

SELECT TOP 1 salary FROM
(SELECT DISTINCT TOP 2 salary FROM employee
ORDER BY salary DESC) a ORDER BY salary

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can coalesce return null?

549


What is ms sql server reporting services?

512


What is the return type of executeupdate ()?

527


Mention the differences between having and where clause.

559


Explain the steps to use transact-sql cursor?

530






What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration

631


What do you mean by data manipulation language?

597


In which format does an image save in SQL Server database ?

596


What is use of except clause? How it differs from not in clause?

604


What is difference between view and materialized view?

540


What is the difference between Stored Procedures and triggers?

576


What is a not null constraint?

600


how you can list all the tables in a database?

526


What is instead of dml trigger?

592


What is the command used to check locks in microsoft sql server?

547