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 are the four Oracle system processes that must always be up and running for the database to be useable?
What is an oracle function?
What is the relation of a user account and a schema in oracle?
How to connect the oracle server as sysdba?
How to create a table interactively?
What is an oracle database table?
How to define an anonymous procedure with variables?
Is primary key indexed by default in oracle?
Explain temporal data types in oracle
What is a table index?
Give syntax for SQL and ORACLE joins.
What is dynamic proxy?
How to generate query output in html format?
State the various uses of dbcc command?
How to increment dates by 1 in oracle?