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
20. Using a set operator, display the client number of all clients who have never placed an order.
Why oracle is used?
What happens to indexes if you drop a table?
What is partitioned table in Oracle?
Difference between pre-select and pre-query
How many types of cluster table in Oracle?
How do I uninstall oracle client from windows?
What are the types of trigger in oracle?
Can we store images in oracle database?
definition of cluster and non-clustered index?
How to connect to a remote server?
What is the difference between pre-select and pre-query?
Briefly explain what is literal? Give an example where it can be used?
Explain the use of control file?
How do you increase the OS limitation for open files (LINUX and/or Solaris)?