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 database replication?
i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.
you notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it? : Sql server administration
What do we have to check in database testing?
What are the 3 types of schema?
When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?
How to choose all records from the table?
What is the sql profiler?
How is a full-text index updated?
Explain full-text query in sql server?
What is the difference between a primary key and a unique key? Are they the same?
Can a cursor be updated? If yes, how you can protect which columns are updated?
What is Replication?
What gets stored inside msdb database?
how many clustered indexes can be created on a table? : Sql server database administration