how to retrive only second row from table?

Answer Posted / nilesh

hi all,

This will also work fine, try it

select top 1 * from (select top 2 * from table_name)as set
order by set.col_name desc

here table_name is the name of the table from which
you want to retrive the record.
And col_name is the column name by which you are sorting
the records

If it found wrong plz correct it....
and show it on this site

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are crud methods?

562


What is the difference between instead of trigger and after trigger?

518


What are views in sql?

555


What is the difference between clustered and non-clustered index in sql?

531


How to run sql*plus commands in sql developer?

598






How do sql triggers work?

560


How does sql*loader handles newline characters in a record? : aql loader

594


Name the operator which is used in the query for pattern matching?

514


differentiate between float and double. : Sql dba

569


Difference between truncate, delete and drop commands?

567


What steps server process has to take to execute an update statement?

516


what is user defined functions? : Sql dba

558


What trigger means?

576


what are all the different normalizations? : Sql dba

515


Explain lock escalation? : Transact sql

713