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
What is Redo Log Buffer in Oracle?
what is the difference between substr and instr function in oracle?
What is a oracle database?
How to execute the package in oracle?
State the various uses of dbcc command?
Calculate difference between 2 date / times in oracle sql?
How to connect to a remote server?
What is a select query statement in oracle?
What are operators in oracle?
Can you drop an index associated with a unique or primary key constraint?
What is a static data dictionary in oracle?
What is SQL access advisor in Oracle?
Which environment variables are absolutely critical in order to run the OUI?
How to connect to oracle using service name instead of sid?
Give the advantages and disadvantages of clusters.