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 are the different types of joins in sql?
what are all different types of collation sensitivity? : Sql dba
What is the difference between database trigger and stored procedure?
What are string functions in sql?
What is row_number () in sql?
What is pl sql and why it is used for?
How does sql store data?
Give the order of sql select?
What is pl sql collection?
Mention what is the function that is used to transfer a pl/sql table log to a database table?
what does the t-sql command ident_current does? : Transact sql
What is the maximum rows in csv?
Show the two pl/sql cursor exceptions.
What are the types of join in sql?
What are different types of indexes?