how to retrieve 1st and last row of table without using
group functions??
Answer Posted / sudipta santra
For the 1st row:
select * from emp where rownum<2 order by empno;
For the last row:
select * from emp where rownum<2 order by empno desc;
| Is This Answer Correct ? | 14 Yes | 5 No |
Post New Answer View All Answers
How do you increase the OS limitation for open files (LINUX and/or Solaris)?
What are temporal data types in oracle?
What view(s) do you use to associate a users SQLPLUS session with his o/s process?
Explain the difference between sap and oracle?
How to create a new tablespace in oracle?
What are a cluster and non-cluster index?
Difference between open_form and call_form in oracle.
How to get a list of all user accounts in the database?
How to display row numbers with the records?
What is the difference between a hot backup and a cold backup in oracle?
Explain integrity constraint?
What is logical backup in oracle?
how the indexes are stored in the Oracle Database?
How to write date and time literals in oracle?
Is there a function to split a string in plsql?