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 bind variable in pl sql?
Inline the values in PL/SQL, what does it mean.?
Can we call stored procedure in function?
Why having clause is used in sql?
How do you clear the screen in sql?
What do you understand by case manipulation functions?
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?
Which operator is used in query for pattern matching?
What is a database trigger?
What is a record in a database?
What is the limitation on the block size of pl/sql?
What is view? Can we update view
What is a crud api?
Explain clause in sql?
How to move files from one directory to another in pl sql?