Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / nitinmukhraiya
Rownum and RowID displays the results faster than others -
select * from <Table_Name> where rownum=1
union
select * from (select * from <Table_Name> order by rownum desc) where rownum=1
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Is a view faster than a stored procedure?
What is a function in oracle pl sql?
what is the difference between a local and a global temporary table? : Sql dba
When is the explicit cursor used ?
What is the unique index?
What are the datatypes available in pl/sql ?
what is text? : Sql dba
What is before trigger?
explain the options of myisamchk to improve the performance of a table. : Sql dba
Enlist the advantages of sql.
How many types of cursors are available in pl/sql?
In what condition is it good to disable a trigger?
Is primary key an index?
What is sap sql anywhere?
What is varchar example?