Hi Everyone,
How to get fist and last record from a table in oracle?
Thanks in advance
Answer Posted / ataullah
Select * from emp where rowid=(select max(rowid) from emp) or rowid=(select min(rowid) from emp)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are the security recommendations while using mysql? : Sql dba
What is composite primary key in sql?
What is package in pl sql with an examples?
what is online transaction processing (oltp)? : Sql dba
what is sql server agent? : Sql dba
When can we use the where clause and the having clause?
discuss about myisam key cache. : Sql dba
What is the non-clustered index in sql?
How does stored procedure reduce network traffic?
Where do we use pl sql?
What is an exception in PL/SQL? What are the two types of exceptions?
I need a function for a train ticket reservation please answer it thanks in advance
How do you declare a user-defined exception?
How do you write an index?
What is a loop in sql?