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
Does pl sql work in mysql?
What is a trigger in sql?
Can we call stored procedure in function?
Is progress software supports to ( pl/sql )?
Can we insert data into view?
Why we use pl sql?
What operators deal with null?
What is rtm stands for?
Explain polymorphism in pl/sql.
What is varray in pl sql?
How do I find duplicates in two columns?
What is pl sql quora?
what is a database lock ? : Sql dba
What is pl sql and why it is used for?
how to rename an existing column in a table? : Sql dba