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

Answer Posted / ravi148

hi,

dileep is exactly correct , arun .. iam sorry to say ur
wrong

suppose for employee table, write as
DECLARE curTemp SCROLL CURSOR FOR
SELECT TOP 2 * from EMPLOYEE
OPEN curTemp
FETCH LAST FROM curTemp
CLOSE curTemp
DEALLOCATE curTemp

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I check if a view exists in a sql server database?

567


what is denormalization and when would you go for it? : Sql server database administration

706


What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?

593


What are joins in sql and what are the different types of joins?

551


What is the current limitation of the size of SQL Azure DB?

102






Explain the truncate command? : SQL Server Architecture

565


Can you create a logon trigger in sql server 2005 express edition?

574


whats new about truncate in sql server 2008?

2028


How do you delete duplicate records in sql server?

511


What are horizontal and vertical scaling?

144


What is global temp table?

561


Tell me what is the order in which the sql query is executed?

531


Explain the difference between control flow and data flow?

529


What are the commands used in DCL?

559


What is the difference between for trigger and after trigger?

546