Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / ramesh
Select * from table_name where rowid =(select min(rowid)
from tanle_name)
union
select * from table_name where rowid = (select max(rowid0
from table_name);
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is function and procedure?
What pl/sql package consists of?
What are the operators used in select statements?
What is cursor status?
What is the difference between unique and primary key constraints?
What is an exception in PL/SQL? What are the two types of exceptions?
What are all types of user defined functions?
What is a boolean in sql?
What is audit logout in sql profiler?
how to check myisam tables for errors? : Sql dba
Can instead of triggers be used to fire once for each statement on a view?
how many values can the set function of mysql take? : Sql dba
What is synchronized subquery?
What is t-sql? : Transact sql
What are the set operators in sql?