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 a null value?
Does sql profiler affect performance?
how many columns can be used for creating index? : Sql dba
How to select all records from the table?
How is sql used in oracle?
How does one use sql*loader to load images, sound clips and documents? : aql loader
How can we avoid duplicating records in a query?
Show the cursor attributes of pl/sql.
What is varchar data type in sql?
What is the most common sql injection tool?
write an sql query to find names of employee start with 'a'? : Sql dba
What is the use of count (*) in sql?
How do you create a unique index?
When can we use the where clause and the having clause?
what is the use of set statement in tsql? : Transact sql