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
Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you
Can you please explain the difference between function and stored procedure?
How to connect a database with sql express.?
What different steps will a sql server developer take to secure sql server?
What are the rules to use the rowguidcol property to define a globally unique identifier column?
List down some advantages of sql stored procedure?
What is the filtered index?
as a part of your job, what are the dbcc commands that you commonly use for database maintenance? : Sql server database administration
1.how to find the dead lock in sql server? 2.How to fine the memory leaks in sql server? 3.suppose transaction log file increasing what action will take ?
How do I find the sql server instance name?
Can primary key be null?
What do you mean by tablesample?
What is the use of sql profiler in sql server 2012?
How to generate create view script on an existing view?
What is sql server used for?