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 tns entry?
What do you mean by merge in oracle and how can we merge two tables?
What is a procedure in oracle?
What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar
Explain about functional dependency and its relation with table design?
What is the difference between translate and replace?
What is blob data type in oracle?
How can I combine multiple rows into a comma-delimited list in oracle?
What is enter substitution variable in oracle?
What are named parameters?
Will you be able to store pictures in the database?explain.
How to connect to the server with user account: sys?
How to open a cursor variable?
How to update a table row with a record?
How to use group functions in the select clause using oracle?