how to retrieve 1st and last row of table without using
group functions??
Answer Posted / nathan
SELECT *
FROM (SELECT emp.*, ROWNUM rn
FROM emp)
WHERE rn = 1 OR rn = (SELECT COUNT (*)
FROM emp);
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do I connect to oracle?
How to do clean up if create database failed?
How to change program global area (pga) in oracle?
How to pass a parameter to a cursor in oracle?
How do I start tns listener?
What is Data Dictionary Cache in Oracle?
How to compare dates in oracle sql?
What is the usage of merge statement?
How to use like conditions in oracle?
How to empty your oracle recycle bin?
What is private procedure oracle?
Why do you create or replace procedures rather that drop and recreate.
How to resolve name conflicts between variables and columns?
What is a dead lock in oracle?
How to insert multiple rows with one insert statement in oracle?