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 sql engine in oracle?
Explain the components of sql?
What is a call statement? Explain with an example.
What is input buffer in sql*plus?
what is offset-fetch filter in tsql? : Transact sql
How do you declare a user-defined exception?
What are commit, rollback, and savepoint?
give the syntax of grant and revoke commands? : Sql dba
How to get unique records from a table?
Explain ddl statements in pl/sql?
Are stored procedures faster than queries?
how to add a new column to an existing table in mysql? : Sql dba
what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
How to raise user-defined exception with custom sqlerrm ?
What is pl sql script?