how to retrive only second row from table in sql server
2000?
Answer Posted / dileep.t
----------------------------------
:), This will also work, without additional columns in
result
---------------------------------
DECLARE curTemp SCROLL CURSOR FOR
SELECT TOP 2 * from <TABLE_NAME>
OPEN curTemp
FETCH LAST FROM curTemp
CLOSE curTemp
DEALLOCATE curTemp
Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
Please explain that what are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture
Do you know what is sql injection?
What are drillthrough reports?
Do you know what is openxml in sql server?
How to connect a database with sql express.?
What is database dimension? : sql server analysis services, ssas
Explain triggers?
Why use stored procedures in sql server?
What does COMMIT command do?
Can we use max in where clause?
How secure is sql server database?
How to generate random numbers with the rand() function in ms sql server?
How can you find out which stored procedures are recompiling?
How to get a list of columns in a view using the "sp_columns" stored procedure?
What is executereader?