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 the use of friend function? : Sql dba
How do I write a sql query in pgadmin 4?
Can you load data into multiple tables at once? : aql loader
What is asqueryable?
explain the advantages and disadvantages of stored procedure? : Sql dba
What is a table partition?
How many joins can you have in sql?
what are the differences between require and include, include_once and require_once? : Sql dba
How do I remove sql developer from windows 10?
What types of commands can be executed in sql*plus?
What is data abstraction in sql?
Is progress software supports to ( pl/sql )?
Is oracel sql developer written in java?
What is sql profiler in oracle?
Is it possible for a table to have more than one foreign key?