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

Answer Posted / arun kumar k s

drop table #temp select top 2 identity(int,1,1) as SlNo, *
into #temp from TABLE_NAME select * from #temp where SlNo=2

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is set nocount on and what is set nocount off?

510


What does the update command do?

609


What is subquery in sql?

563


Write a query to find 5th highest amount paid from the customer table.

523


What is raid, and how it can influence database performance?

568






Explain Normalization and DE normalization

600


Can a function call a stored procedure in sql server?

522


What are date and time data types in ms sql server?

519


what is the difference between Delete and Truncate command in SQL

620


What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks

1607


According to you what goes into making the best database administrator? : sql server database administration

539


Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?

106


What you can do to delete a table without the delete trigger firing?

514


Explain foreign key in sql server?

569


Does full backup break log chain?

539