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
what is commit? : Sql dba
What is full form of rtm?
Explain the order of sql statement execution?
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?
Is ms sql traffic encrypted?
Why do we use joins in sql?
What is the difference between inner join and outer join?
What are the different type of joins in sql?
what is 'mysqladmin' in mysql? : Sql dba
what are wild cards used in database for pattern matching ? : Sql dba
What is the difference between microsoft access and sql server?
Is left join inner or outer by default?
Is inner join same as self join?
How do I run pl sql in sql developer?
what are the different type of sql's statements ? : Sql dba