Answer Posted / tulasi ravi kumar
hi this tulasi .....+91-9951123501
in SQL Server 2000 we write as...
declare CurTemp scroll cursor for
select top 2 * from <table_name>
open CurTemp
fetch last from CurTemp
close CurTemp
deallocate CurTemp;
in ORACLE , we can write as..
select * fom <table_name>
where rowid=(select rowid from <table_name>where rownum<=2
minus
select rowid from <table_name>
where rownum<2;
so try it ...
| Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
What is denormalization in a database?
How to install oracle sql developer?
Can we insert delete data in view?
What is set serveroutput on?
what is the difference between join and union? : Sql dba
How many types of privileges are available in sql?
what is the difference between where clause and having clause? : Sql dba
Which command is used to delete a trigger?
Why partition by is used in sql?
What are few of the schema objects that are created using PL/SQL?
List the different type of joins?
What are the basic sql commands?
What is the difference between Union and Union all. Which is faster.
What is the max nvarchar size?
How can we debug in PL/SQL?