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
What do you understand by replication in sql server? Mention the different types of replication in sql server.
how to create “alternate row colour”?
How will you know when statistics on a table are obsolete?
What are approximate numeric data types in ms sql server?
Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?
What do you understand by replication in sql server?
What is the rdl file?
Differentiate sql server reporting services vs. Crystal reports?
what is a traditional network library for sql servers? : Sql server database administration
How we can refresh the view?
what is difference between NULL and ISNULL in SQL Server 2008?
Does union all remove duplicates?
Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?
You want to check the syntax of a complicated update sql statement without executing it. What command should you use?
What is BCP? When does it used in sql server 2012?