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

Answer Posted / lekhraj

select top 1 * from(select top 2 * from tbl_test order by 1
asc) as at order by 1 desc

Is This Answer Correct ?    24 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain different types of constraints? : Sql server database administration

518


Does sql server use t sql?

534


How to override dml statements with triggers?

584


Write query to return all rows sql?

623


What is row_number()?

589






Mention the 3 ways to get a count of the number of records in a table.

555


what are isolation levels? : Sql server database administration

499


List the advantages of using stored procedures?

563


What is sql profiler. What are the default templates with it? : sql server database administration

523


What are the five characteristics of good data?

520


What are the methods used to protect against sql injection attack?

589


What is report snapshot in ssrs?

166


Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you

1305


What are the authentication modes in sql server? How can it be changed?

607


How to create an multi-statement table-valued function?

532