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 difference between truncate and drop statements?
what are the 'mysql' command line arguments? : Sql dba
Can one improve the performance of sql*loader? : aql loader
What is self-join and what is the requirement of self-join?
What is the difference between sql and isql*plus?
What is the use of pl/sql table?
Can dml statements be used in pl/sql?
name 3 ways to get an accurate count of the number of records in a table? : Sql dba
what is 'trigger' in sql? : Sql dba
Can we edit a view in sql?
tell us something about heap tables. : Sql dba
What is sqlcontext?
What is the syntax to add a record to a table?
Which is the correct statement about truncate and delete?
What is asqueryable?