how to retrieve 1st and last row of table without using
group functions??
Answer Posted / prabhudatta
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO) WHERE
ROWNUM=1
UNION
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO DESC)
WHERE ROWNUM=1;
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
What is an index associated with a constraint?
How to upsert (update or insert into a table)?
What are the various oracle database objects?
How data locks are respected in oracle?
What are the built-in functions used for sending Parameters to forms ?
What is an oracle cursor variable?
What is the purpose of save points in oracle database?
How to rename an index?
Does oracle charge for java?
What is open database communication (odbc) in oracle?
What are the different types of partitions in oracle?
How to experiment a data lock in oracle?
Difference between inner join vs where ?
How to use existing values in update statements using oracle?
How to start your 10g xe server?