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 is difference between rownum and row_number?
explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
Explain use of expression builder.
How many types of local tables are there in sql server?
What is the maximum size of sql server database?
How do you migrate data from mssql server to azure?
How do you delete duplicate rows in sql server?
What are the drawbacks of reporting in ssrs?
Do you know what are the properties of the relational tables?
Which sql server table is used to hold the stored procedure scripts?
What is Extended user-defined?
Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?
Give an example of SQL injection attack ?
What is cursors? And what are the different types of cursor?
How can you tell if a database object is invalid?