how to retrieve 1st and last row of table without using
group functions??
Answer Posted / rajesh
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO) WHERE
ROWNUM < 2
UNION
SELECT * FROM (SELECT * FROM EMP ORDER BY EMP_NO DESC)
WHERE ROWNUM < 2;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is Data Dictionary Cache in Oracle?
What is an oracle database?
How to define an external table with a text file?
How to export several tables together?
How to display employee records who gets more salary than the average salary in the department?
What is meant by a deadlock situation?
Can you tell me how to add new column in existing views?how?How is possible?
How to count duplicated values in a column in oracle?
Explain oracle insert into command?
Hi this srilatha. I comlpeted my Oracle-hrms. can u provide me interview questions on Core hr, payroll,sshr,OLM etc..
How to assign a table row to a record variable?
What is a trigger oracle?
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
How do I start tns listener?
How index is implemented in oracle database?