Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / rajesh venati
select * from table_name where rownum=1
union
select * from table_name where rowid=(select max(rowid) from
table_name);
| Is This Answer Correct ? | 27 Yes | 5 No |
Post New Answer View All Answers
discuss about myisam key cache. : Sql dba
What is the benefit of foreign key?
What are data types in pl sql?
what does it mean to have quoted_identifier on? : Sql dba
Should I use mbr or gpt?
what is the difference between nested subquery and correlated subquery?
What is the difference between partition and index?
How many indexes can be created on a table in sql?
What is data types in sql?
What is delimiter sql?
What are the advantages of indexing?
what is cross join? : Sql dba
What do you understand by pl/sql packages?
Why having clause is used in sql?
Explain the difference between rename and alias?