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 to list all tables in your schema?
What happens if the imported table already exists?
How to assign values to data fields in record variables?
what are archived logs?
What does sharding mean?
Explain the use of rows option in imp command.
What is meant by joins? List out the types of joins.
What are the different types of modules in oracle forms?
What are the extensions used by oracle reports?
What is oracle analytical function?
How do you store pictures in a database?
A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.
How does Oracle guarantee data integrity of data changes?
How many types of tables supported by oracle?
How to revoke create session privilege from a user in oracle?