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
Are stored procedures faster than queries?
How do you get column names only for a table (sql server)?
What is the best partition size for windows 10?
What is sql profiler in oracle?
Where can I learn sql for free?
What is a schema? How is it useful in sql servers?
Is record in oracle pl sql?
Can we create a trigger on view?
Explain what is sql?
Is not null in sql?
What is the use of sql trace?
Show the two pl/sql cursor exceptions.
what is the difference between truncate and delete statement? : Transact sql
How to return an array from java to pl/sql?
What is cross join example?