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
who introduced sql?
Is ms sql traffic encrypted?
Which data dictionary views have the information on the triggers that are available in the database?
Can we use rowid as primary key?
how to increment dates by 1 in mysql? : Sql dba
Which one is better subquery or joins?
What is character functions?
How do I write a sql query in pgadmin 4?
what are the nonstandard string types? : Sql dba
What is raw datatype in sql?
What is on delete restrict?
What is an intersect?
Explain the the update statement in sql?
how to write date and time literals? : Sql dba
Where is sql database stored?