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
can a database be shrunk with users active? : Sql server administration
Explain various On-Delete options in a DB table. Which is the default option?
Define normalisation?
What are subquery and its properties?
What is sub-query in sql server?
Explain about the command-line tool SQLCMD?
What is the purpose of floor function?
What is 3nf normalization form?
How display code or Text of Stored Procedure using Sql query in Sql Server ?
Determine how to use the inserted and deleted pseudo tables?
What are the pre-defined functions in the sql server?
how you can list all the tables in a database?
What is 2nf example?
What is the difference between sdf and mdf?
How do I determine how many instances of sql server are installed on a computer?