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 the disadvantage of User defind function?
Is it possible to insert comments into sql statements return in the data model editor ?
What is a trigger oracle?
How to fetch the row which has the max value for a column?
How to best split csv strings in oracle 9i?
How to test null values?
What is oracle analytical function?
What are the differences between blob and clob in oracle?
What is flashback in Oracle?
What is sharded cluster?
How to retrieve data from an cursor to a record?
How to list all indexes in your schema?
How to establish administrator authentication to the server?
How to create a new user account in oracle?
What is a system tablespace?