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
What is the difference between getdate and sysdatetime?
What are pages and extents? : SQL Server Architecture
How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?
Does index slows down insert statements?
How can sql server instances be hidden?
What are the basic functions for master, msdb, model, tempdb and resource databases?
What are different types of join?
Explain how you can configure a running aggregate in SSRS?
What is openxml in sql server?
How many levels of sp nesting is possible?
How do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?
What is the chart in report?
Tell me what is de-normalization and what are some of the examples of it?
How would we use distinct statement? What is its use?
What is tcl in sql server?